Which man sent an email using php + smtp? Please advise the solution

Source: Internet
Author: User
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; test ***** @ qq.com & quot; $ Has the subje 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 = "test ***** @ qq.com ";
$ Subject = "Test mail ";
$ Message = "Hello! This is a simple email message .";
$ From = "test ***** @ qq.com ";
$ 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.