NOTE: though this method does work, at least with my setup, there are some anomalies which I think are caused by the Server's rules concerning SMTP. For example only one eMail can be sent to an address at a time, there must be a delay of a few minutes before another can go, in cases where the mail is virtually identical. This makes testing awkward, but I guess it is part of anti-spam protection.
Further problems occur if there are any...
User Profile
Collapse
-
-
1st file, uses 2nd file [includes it] place both in same folder for simplicity, move one to /includes/ if you want to be tidy, then change path.
save the first file as 'test_auth_mail .php', or some memorable name
...Code:<html> <head> <title>Simple SMTP mail test</title> </head> <body> Testing SMTP mail sending ... <br><hr><br>Leave a comment:
-
cannot send mail using PHP beyond domain
I WAS trying to send mail using PHP from within IIS, the SMTP server had refused to send mail beyond the domain without authentication, but php mail() could not provide that. The hosting firm does not have Pear, I could not find another way ?
UPDATE/STOP PRESS: Using 'fsockopen' I was eventually able to get it working. I have pasted the working solution here.
Thank you to the people who viewed my query, but in the end I...
No activity results to display
Show More
Leave a comment: