Sending emails using PHP in WINDOWS

Source: Internet
Author: User
In WINDOWS, I used PHP to send emails. I moved the program running in LINUX to WINDOWS. the following error occurs when I send emails: Warning: & nbsp; mail () & nbsp; [function. mail]: & nbsp; SMTP & nbsp; server & nbsp; response sending mails in PHP in WINDOWS
When I move the program running in LINUX to WINDOWS, the following error occurs when I send an email:
Warning: mail () [function. mail]: SMTP server response: 550 5.7.1 Unable to relay for cosmos_library@cosmel.com in D: \ websites \ cosmel_com \ elink \ reply2.php on line 12
Email system error!


------------------------------------------
The 12 lines of reply2.php code are as follows:

Mail ("cosmos_library@cosmel.com", "HELLO", $ body, "From: $ yourmail") or die ("Email system error! ");

--------------------------------------------

How can this problem be solved?
(Note: in WINDOWS, I have started the SMTP service)

------ Solution --------------------
Or your Smtp Server problems
Port 25 is connected, but cannot be sent

Configure
------ Solution --------------------
Same as above. if it still doesn't work, try sending an email using the client.
------ Solution --------------------
Google
Php smtp class free down
------ Solution --------------------
Dog... Search

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.