Sending e-mail in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
php_wiz_kid
Forum Contributor
Posts: 181
Joined: Tue Jun 24, 2003 7:33 pm

Sending e-mail in PHP

Post by php_wiz_kid »

How do you show who the message is from when you send an e-mail message through PHP.
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post 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"
nasr
Forum Newbie
Posts: 13
Joined: Wed Jun 25, 2003 9:29 pm
Location: Cali

Post by nasr »

here is a topic about that ....

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


Nas
php_wiz_kid
Forum Contributor
Posts: 181
Joined: Tue Jun 24, 2003 7:33 pm

Post by php_wiz_kid »

Thanks guys, this really helps a lot!
Post Reply