Having heard so many bad things about PHP mail()
I skipped it and downloaded kid moses' SM_SMTP class. This seemed easy enough to config. server, port, user, password etc. But when I tested it I received no mail.
So I turned on the debug flag and tried again. I get the following:
334 UGFzc3dvcmQ6 235 2.7.0 Authentication successful 250 2.1.0 Ok 250 2.1.5 Ok 354 End data with . 250 2.0.0 Ok: queued as 4C33993A54 221 2.0.0 Bye
queued so everything looks fine. But still no email. So I telneted to the server:
AUTH LOGIN 334 VXNlcm5hbWU6 enc 64 username* 334 UGFzc3dvcmQ6 *enc 64 pwd* 235 2.7.0 Authentication successful MAIL FROM:[email protected] 250 2.1.0 Ok RCPT TO:*email address* 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> TEST 250 2.0.0 Ok: queued as 3B75693A54
looks much the same. again queued. but this time I received it ASAP.
So:
- Does anyone use kid moses SMTP class? Is it good? the docs seem competent
- Should I try mail? Can anyone recommend best practice for PHP mail?
- How would you go about investigating further?
NB I mailed the log to my host provider but they just respond with some 'please provide a complete description of how to replicate BS'