|
-
Oct 24th, 2003, 08:18 PM
#1
Thread Starter
Fanatic Member
Newsletter
OK, What I wanna do is have a textbox at the bottom of the page that you type your email in and when you click send next to it, it sends a preset message to [email protected] that says something like "[email protected] has signed up for the newsletter. please add them to your address book!"
-duc
<------his arm must get tired
-
Oct 25th, 2003, 01:09 PM
#2
ASP, PHP, or CGI?
Using a server side language, you'd retrieve the email address the viewer puts in, and sends an email to whatever.com address.
Now, what language? Each one has their own respective forum
-
Oct 26th, 2003, 11:12 AM
#3
Banned
-
Oct 26th, 2003, 02:54 PM
#4
Thread Starter
Fanatic Member
Originally posted by mendhak
ASP, PHP, or CGI?
Using a server side language, you'd retrieve the email address the viewer puts in, and sends an email to whatever.com address.
Now, what language? Each one has their own respective forum
It really doesnt matter. Whatver one works for you
-
Oct 26th, 2003, 11:07 PM
#5
Originally posted by duc
It really doesnt matter. Whatver one works for you
Erm... what language does the server support? Is it your muffins site? Or some other site?
-
Oct 27th, 2003, 03:27 AM
#6
Banned
-
Oct 27th, 2003, 04:25 PM
#7
Thread Starter
Fanatic Member
Originally posted by mendhak
Erm... what language does the server support? Is it your muffins site? Or some other site?
Sniffum.com And it'll support anything you can script
-
Oct 27th, 2003, 09:39 PM
#8
Stuck in the 80s
Originally posted by Kyle_Katarn
K-ML only require PHP
He didn't ask for a prebuilt script. I think he wants to do it himself. You know...code and whatnot.
-
Oct 27th, 2003, 11:31 PM
#9
Originally posted by duc
Sniffum.com And it'll support anything you can script
Hmm... well, I have a job, so I don't get much time to write scripts for others. I can help you with your script though.
How well do you know PHP?
I'll give you a basic overview of it first:
On a page, you'll have a little box where the user can enter their email address. The next page, which is the form's action, will just have to use the mail() function to send an email to the spammer-guy. Now the mail function takes a couple of arguments.
PHP Code:
mail("$to", "$subject", "$msg", "$headers");
$to is obvoius.
$subject is obvious
$msg can be set as an HTML string, and would look something like this:
PHP Code:
$msg = "
<HTML>
<BODY style='font-family:Arial, Verdana, Tahoma; font-size:12px;'>
<b>Hi!</b><br>
You are an idiot. <b>$subscribersemailaddress</b> should be added to your address book. He wants to get spammed by you!
</BODY>
</HTML>
";
And set the $headers like this:
PHP Code:
$headers = "From: $yourname <$youremail>\nReply-To: $youremail\nContent-Type: text/html; charset=iso-8859-1";
(Because that'll enable you to send an HTML email)
Hmm... I may have inadvertantly written some of the script for you, but I'm sure you'll be able to figure out the rest. If you need more help, post again.
-
Oct 28th, 2003, 07:18 PM
#10
Thread Starter
Fanatic Member
How well do you know PHP?
Not well. But what you said made general sense.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|