Which man sent an email using php + smtp? Please advise if sendmail is installed on my server and can be sent via mail for testing. why is the third time qq received a spam email? 163 cannot receive? Why? & Lt ;? Php $ to & quot; [email & #160; protected] & quot; $ subject & quot; Testmail & quot ;; $ message & quot which man sent an email using php + smtp? Please give me some advice
My server is installed with sendmail, which can be sent by mail. test, the third time qq received is in spam mail? 163 cannot receive?
Why?
$ To = "[email protected]";
$ Subject = "Test mail ";
$ Message = "Hello! This is a simple email message .";
$ From = "[email protected]";
$ Headers = "From: $ from ";
Mail ($ to, $ subject, $ message, $ headers );
Echo "Mail Sent .";
?>
------ Solution --------------------
Yes. It indicates that there is no problem with sending emails, and may be intercepted by 163. Multiple tests.
------ Solution --------------------
If you use the sendmail service that comes with the system, spam is suspected. It is best to use third-party smtp for sending. There are many open-source libraries on the Internet.