PDA

View Full Version : php email autoresponder (Solved)



nate51
02-04-2008, 07:48 PM
I have a php registration form page that when the submit button is hit it send an email to designated recipients and a thank you email to the person filling out the form via email.

Right now the email address the recipient see's is "CGI-Mailer" how do I make the reply address the user see's as "info@dummysite.com"?

Please and thanks.

thetestingsite
02-04-2008, 07:54 PM
we would need to see the code, but usually it is in this line of code:



mail($to, $subject, $message, 'From: info@dummysite.com <info@dummysite.com>');


Hope this helps.

nate51
02-04-2008, 08:49 PM
It works to display the address in your inbox, but it produces a "Message has been blocked for your safety" message in hotmail and when you hit the reply button the address comes out like this on the address bar. "info@" <dummysite.com info@dummysite.com>

Getting there though.

thetestingsite
02-04-2008, 09:10 PM
If that's the case, get rid of the highlighted part in the code below:



mail($to, $subject, $message, 'From: info@dummysite.com <info@dummysite.com>');


Hope this helps.

nate51
02-04-2008, 09:18 PM
That did it!

Perfect, thanks a bunch!

-- Nate