Hi I currently have a contact form on a new site I'm creating which prompts for a name and email address. This looks like any contact form you would see on a site that uses Aweber or GetResponse except I want to use my own. Instead of having the person filling out the form send me an email with a message like a standard contact form does I want it to go straight into a mailing list on my server which sends them a confirmation email automatically like any other mailing list. The problem is a can't figure out the php code I need to use. Perhaps I should be using a cgi script but I don't know enough about them. To join the mailing list the contact form is supposed to point towards and unsubscribe is . At least thats what the mailing list configuration says on my server. Anyone know how to make this work. Help!
I am a little confused as to what you mean by "go to a mailing list on my server" If you want to send the mail instantly use mail(). If you want to store it, and then send it at another time store the info in a DB, then use a cron job to pull off any unsent emails and send them, again using mail() In terms of getting the confirmation email working you can do something like this: 1. Create a hash based on some part of their info, i.e. $hash = md5($name + $signupdate); 2. Send them an email with a link to a script on your site that looks something like this: http://www.mysite.com/confirmemail.php?userid=3&confirm=4c37a39b02c7de Code (markup): That script then checks the user id, creates its own hash, and sees if it matchse the confirm hash provided, if it matches then confirm the email as valid I hope that helps