For all of the people struggling with getting PHP mail() sending to some, but not all, recipients…look no farther. Your solution has been posted here.
It appears PHP-generated emails don’t play nice on Windows mail servers. So, when your mail goes to anyone who uses a Windows mail server , the recipients won’t get it. UNLESS YOU ADD THE LINE:
<?
ini_set (“SMTP”,”mail.mydomainname.com”);
ini_set(“smtp_port”,”25″);
ini_set(“sendmail_from”, “info@mydomainname.com”);
ini_set(“smtp_port”,”25″);
ini_set(“sendmail_from”, “info@mydomainname.com”);
?>
this code is not working for my windows server 8….pls give me some suggestion
Sagar, If you have a valid mail domain which is registered and hosted then it will work. If you are using localhost as your sending domain then it wont work unless you have a properly configured SMTP service installed in Windows.
thanks for giving this code this is very useful to me thanks again
Jaya Lakshmi
You are welcome
This is very useful code for window server
really appreciated, thanks alot.
🙂
i am using this code it was working earlier but now it stopped working n mail id is still working which i using for send mail…? windows server hosting i using