Click to See Complete Forum and Search --> : Newsletter
duc
Oct 24th, 2003, 08:18 PM
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 subscribe@whatever.com that says something like "personsemail@theirhost.com has signed up for the newsletter. please add them to your address book!"
-duc
:wave: <------his arm must get tired
:(
mendhak
Oct 25th, 2003, 01:09 PM
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 ;)
Kyle_Katarn
Oct 26th, 2003, 10:12 AM
Try K-ML : http://www.katarncorp.com/?kml
duc
Oct 26th, 2003, 01:54 PM
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 ;)
mendhak
Oct 26th, 2003, 10:07 PM
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?
Kyle_Katarn
Oct 27th, 2003, 02:27 AM
K-ML only require PHP
duc
Oct 27th, 2003, 03:25 PM
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 ;)
The Hobo
Oct 27th, 2003, 08:39 PM
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.
mendhak
Oct 27th, 2003, 10:31 PM
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.
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:
$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:
$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. :)
duc
Oct 28th, 2003, 06:18 PM
How well do you know PHP?
Not well. But what you said made general sense. :cool:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.