After I testing the php, it showed me the email was sent successfully( without any error information and opened the www.google.com) . But I can not find the email sent in the [email protected].
I have downloaded a software called Free SMTP Server to run on my machine. It also showed me my php program used the port 8081 to send the email.
That will tell you if mail() talked to your SMTP server or not. If it is, perhaps your mail is being sent but blocked by a spam filter? You’re not using complete headers, which is sometimes seen as a sign that a message is spam. Here’s a snippet of code from a mail script I’ve written: