Click to See Complete Forum and Search --> : php mail() from: problem


vicpal25
09-16-2005, 05:35 PM
i have the following php mail() function for an email form


mail("vicpal25@yahoo.com", $subject, $body, "Email:vicpal25@aol.com")


it emails just fine, and i get the email but when i open it up the from: shows:

vicpal25@ linhost116.mesa1.secureserver.net

is this a security setting on my hosted site? hummm..or is tehre any other attribute within the mail() that can override this?

anny suggestions are welcomed :D

Scleppel
09-16-2005, 05:48 PM
If i understand you correctly, shouldn't it be "From:" not "Email:".


mail('vicpal25@yahoo.com', $subject, $body, 'From: vicpal25@aol.com');

vicpal25
09-16-2005, 05:49 PM
WOOOOOOOOOOOOOOPS YOUR RIGHT HEHE LOL thanks! hehe