I have an email script which is currently working. But it took several hours to figure out the problem. When I put the senders (me) email address as @gmail or @hotmail extension, it refuses to send the email. But if I have the extension as @example or @test (haven't tried any others) it works and sends the email perfectly fine.
Now there is nothing in my script which is filtering out those extensions. And my script obviously works. SO I am wondering if the server is filtering out those extensions somehow? and if so is there a way to allow those extensions through?
Doesn't work:
Works:
Now there is nothing in my script which is filtering out those extensions. And my script obviously works. SO I am wondering if the server is filtering out those extensions somehow? and if so is there a way to allow those extensions through?
Doesn't work:
PHP:
$from = "From: ".EMAIL_FROM_NAME." <mathew.odonoghue@gmail.com>";
PHP:
$from = "From: ".EMAIL_FROM_NAME." <mathew.odonoghue@hotmail.com>";
Works:
PHP:
$from = "From: ".EMAIL_FROM_NAME." <mathew.odonoghue@lol.com>";
PHP:
$from = "From: ".EMAIL_FROM_NAME." <mathew.odonoghue@example.com>";
PHP:
$from = "From: ".EMAIL_FROM_NAME." <mathew.odonoghue@test.com>";