View Full Version : PHP Mail Question

06-14-2007, 02:40 AM
Hello, I have a question pertaining to the PHP mail() function. I am using a contact form on my site to send email. I set "From" in the headers and it does display what I specified for it in the email, but it shows, "Resonant-Media@host4.surreal-media.com" as the sender. Is there any way to remove/change the "@host4.surreal-media.com" section? I tried setting the "Reply-To" header and it didn't work. Any ideas? Thanks

06-14-2007, 02:44 AM
In the "From" header, do you have it set like so:

From: Your Name <email@domain.com>

If so, then I believe the only way to fix it would be to edit the php.ini file for your server configuration. Other than that, not sure what can be done.

Hope this helps.

06-14-2007, 03:19 AM
Thanks, that took care of the problem. I never even thought to do that.