thrion wrote in php 😯confused

SMTP Authentication Issues

I am having some issues getting email sent out via PHP and SMTP.

On my SMTP server, if I allow anonymous access I can send mail...to some people. Half of my test email accounts get the messages, half do not. I have read quite a bit recently about how many ISPs are blocking delivery of email from SMTP emailers that allow anonymous access, so I created a user name and password for my SMTP server authentication (basic).

Now none of my email gets sent. I am sure there should be a way to pass the user/password from php to the mail() function, but haven't been able to find any documentation on this.

My php.ini settings:
SMTP = localhost
sendmail_from = info@mydomain.com


Running:
Windows 2000 sever
IIS
IIS Virtual SMTP


Anybody have some suggestions?