nerdyrat Posted September 16, 2009 Share Posted September 16, 2009 <?php $to = "[email protected]"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "[email protected]"; $headers = "Nerdyrat"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> Link to comment https://forums.phpfreaks.com/topic/174514-email-script-doesnt-send-me-an-email/ Share on other sites More sharing options...
gevans Posted September 16, 2009 Share Posted September 16, 2009 with that wealth of information im guessing you just get a blank screen, an error, mail sent?? who knows... see what happens when you actually check the mail function for success... <?php $to = "[email protected]"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "[email protected]"; $headers = "Nerdyrat"; if(mail($to,$subject,$message,$headers)) echo "Mail Sent."; else echo "Mail not sent."; ?> Link to comment https://forums.phpfreaks.com/topic/174514-email-script-doesnt-send-me-an-email/#findComment-919779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.