millercj Posted April 8, 2008 Share Posted April 8, 2008 I don't know if I'm blind but I can't see the problem with this script. It works on the server but i never receive the email <?php $to = '[email protected]'; $headers = 'From: News Submission'; $subject = 'Prayer Request'; $message = 'Blah Blah Blah'; mail($to, $subject, $message, $headers); ?> Link to comment https://forums.phpfreaks.com/topic/100080-mail-problem/ Share on other sites More sharing options...
kenrbnsn Posted April 8, 2008 Share Posted April 8, 2008 The "From:" header needs to be, at least, an email address. On some hosts it needs to exist, on others it can be fake. Ken Link to comment https://forums.phpfreaks.com/topic/100080-mail-problem/#findComment-511733 Share on other sites More sharing options...
millercj Posted April 8, 2008 Author Share Posted April 8, 2008 Ok, thanks. My server is quite fidgety i've found Link to comment https://forums.phpfreaks.com/topic/100080-mail-problem/#findComment-511746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.