Hello folks I have a strange problem with the mail function:

This is hosted on say for arguments sake www.thedomain.com...

Heres the basic code (missing the variables content):

mail("team@thedomain.com", $subject, $message, $headers); // This one never works
mail("test@othergdomain.com", $subject, $message, $headers); // This one works every time

What really odd is that if I email team@thedomain.com with Hotmail or my hosting email it works perfectly?!?!

Can anybody help explain or give me some idea of how to debug this?

😕

    I had similar problems. I would send an email to my self to test the script and I would never get it. I finally logget on to my hotmail account - cause I'm using an email client and I download my emails from the server - and noticed that the emails were received but were automatically placed in a bulk or trush folder and that's why I couldn't see them. I can't remember exactly what I did, but I remember that I changed or added to my $headers what my host was using to send their emails. It's a liitle anorthodox so if anybody has a better idea it would be great.

    Hope this helps a little 🙂
    Panos A.

      Thanks 🙂

      It turned out that the mail function was blocked from sending mails in the internal network!! How annoying..... fixed now though. 🙂 Cheers

        Write a Reply...