PHP mail() odd problem


#1

Hello,

I’m encountering the following problem:
I have a php script which is supposed to send an automated email each time an user creates an account on my website. The email arrives in 2 seconds if the email address is like "...@yahoo.co.uk" but doesn’t arrive at all if the email address is different.

Any ideas why? Because it seems very strange to me…


#2

Do you mean that you only get it if you send it to a yahoo.co.uk address, or if that’s the sender’s address? It shouldn’t matter either way, unless something is triggering a spam filter for certain ISPs.

Did you check junk/spam folders?


:stuck_out_tongue: Save up to $96 at Dreamhost with ALMOST97 promo code (I get $1).
Or save $97 with THEFULL97.


#3

It’s quite common to put email filters in scripts. You’ve checked to see that the script doesn’t restrict the acceptable email addresses?


#4

Yes, that’s exactly what happened. The script is ok, I’ve used it many times. When I used the script to send an email to let’s say "someone@yahoo.co.uk" the email arrived within 5 seconds. When I used it to send an email to "someonelese@yahoo.com" or "someone@gmail.com" the message didn’t arrive. And I also checked the spam folders.

But, when I checked after about 5-6 hours later, all the emails arrived on all the addresses and they all were in the INBOX folder.

So, I guess it’s a problem with the mail server. Probably some strange delay because I still can’t explain why on yahoo.co.uk the emails were sent immediattly and on other domains it took hours.