I don't host with MWEB, but I would like to point something out:
Code:
mail("gregory@mydomain.com", "Test message", "This is the message", "From: another@domain.com
")
The From field part of the DATA portion of the mail. It is ignored by the mail server. The mail server cares about the envelope sender, and you're not setting the envelope sender, so your mail is going to come from something like apache@web12.mweb.com or whatever they call their boxes. Check the headers for the "Return-path" header
You need to do something like:
Code:
mail("gregory@mydomain.com", "Test message", "This is the message", "From: another@domain.com
", "-fsender@domain.com")
The -f is passed to the sendmail binary and sets the envelope sender.
Bookmarks