Page 1 of 1

Sending e-mail in PHP

Posted: Wed Jun 25, 2003 10:37 pm
by php_wiz_kid
How do you show who the message is from when you send an e-mail message through PHP.

Posted: Wed Jun 25, 2003 10:49 pm
by enygma
the mail() function allows headers to be passed, like this:

mail($to,$subject,$body,"From: me@me.com");

then, the message will have come from "me@me.com"

Posted: Wed Jun 25, 2003 10:50 pm
by nasr
here is a topic about that ....

viewtopic.php?t=9956&highlight=send+mail


Nas

Posted: Wed Jun 25, 2003 10:54 pm
by php_wiz_kid
Thanks guys, this really helps a lot!