Steve Angelis Posted April 11, 2008 Share Posted April 11, 2008 Ok, here it is. I have a 100% working Email script except for one problem. I want to change it so when the email is recieved it does not come up as nobody. I have found complicated ways of doing it, but here is my script: $to='[email protected]'; $subject='blah sub'; $body='the message'; mail($to, $subject, $body'); Now this works just fine, but how do I add a from in there? Would I just add it in the end with defining the from or? Link to comment https://forums.phpfreaks.com/topic/100588-very-simple-email-problem/ Share on other sites More sharing options...
Northern Flame Posted April 11, 2008 Share Posted April 11, 2008 $from = "From: [email protected]"; mail($to, $subject, $body, $from); or $from = "From: Your Name<[email protected]>"; Link to comment https://forums.phpfreaks.com/topic/100588-very-simple-email-problem/#findComment-514447 Share on other sites More sharing options...
Steve Angelis Posted April 11, 2008 Author Share Posted April 11, 2008 Thankx Link to comment https://forums.phpfreaks.com/topic/100588-very-simple-email-problem/#findComment-514448 Share on other sites More sharing options...
Northern Flame Posted April 11, 2008 Share Posted April 11, 2008 remember to hit "Topic Solved" if you have no more questions Link to comment https://forums.phpfreaks.com/topic/100588-very-simple-email-problem/#findComment-514449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.