To make a long story short, I haven't done anything with PHP in about six months, and I'm at that point where I'm having trouble with the most stupefyingly simple tasks... The following does not send any message at all, but it does relocate the user as it should. I tried a few different destination addresses. What am I doing wrong here? Note: I've blacked out some stuff with "%%%" <?php $from = "From: %%%@%%%.com"; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "%%%@%%%.com",$subject, $message, $from ); echo " <html> <head> <meta http-equiv='refresh' content='5; url=http://%%%.com'> <title>Message Sent</title> </head> <body> Your message has been sent. Just a moment... </body> </html> "; php?> PHP: Thank you for your time!
Sends mail on my server. Not sure what the issue might be, unless your server is blocking the mail command, or it's being flagged as spam and possibly deleted at your email addresses.
Why you do not try to send email using smtp ? See following find smtp lib you like http://swiftmailer.org/ http://poss.sourceforge.net/email/news/ http://phpclasses.ranchoweb.com/package/5032-PHP-Send-e-mail-messages-via-SMTP.html