PDA

View Full Version : From: Nobody


apbc
01-18-2002, 12:58 AM
Ok.. I know its been asked before, but all the answers seem to have disappeared...

How do I get rid of the From: Nobody (hrblahblah) in a message generated by php?

The mail command I am using is:

mail($address,$subject,$texts,$headers);

Thanks for the help!

Stone
01-18-2002, 10:11 PM
Just substitute something like j.edgarhoover@fbi.gov.

hee hee cough cough

alan92rttt
01-19-2002, 12:36 AM
if you got www.php.net and lookup the syntax for the sendmail command you find out how to stub in a send from address.

Some mail servers will not accept mail with out a send from address.

JoeF
01-19-2002, 12:39 AM
mail($address,$subject,$texts,'From: whoever@what.com'.$headers);

apbc
01-19-2002, 08:23 PM
Thanks.. was able to find the answer and lots more at php.net:D