4 Responses to “Why is my PHP script not sending emails?”

  1. I had this little problem days ago… It gave me a headache, but asked my host provider to correct the php.ini problem and after just the heaven!

    We must pay attention to this things, otherwise we are caught up…

    Indeed, good post!

  2. Boiss says:

    Even easier, use phpMailer class.

  3. Jeff Rowberg says:

    I had the unfortunate experience of troubleshooting a problem where the message header ORDER actually mattered. This message didn’t go through:

    Content-type: text/html
    From: Joe Somebody

    But this one did:

    From: Joe Somebody
    Content-type: text/html

    Go figure. I guess some spam filters are really picky, or maybe the RFC dictates it must be that way and the server rejected it as malformed. I may never know.

  4. Prasanth says:

    Boiss

    phpMailer is only a helper. If you give a wrong ‘From’, that also can fail to send email.

    Prasanth

Add New Comment