Hi I have a PHP form that I debugged and is working now but I still don't understand the root cause. I build the email msg header to include a "From e-mail address". This string comes in by user input in the Email field on the HTML form.
$headers = 'From: '.$email_from."\r\n"
If the e-mail address happens to be from a major mail domain like yahoo or hotmail I will not receive the e-mail in my Gmail account (the PHP mail msg send destination). So for example if a person types in the from email address tito897@yahoo.com and submits the form the mesage will never arrive, The same goes for Hotmail, Gmail, etc... However if it were tito987@ahoo.com or tito@fakedomain.com it gets to my Gmail.
I worked around it by hard coding the from address to a non-major mail carrier domain and I know get all mail it just comes under this address below.
$headers = "From: A-PERSON@website.com\n";
Is GMAIL not accepting the messages becasue it can tell they are not really coming from Yahoo or Hotmail etc... The PHP code would actually fire off the mail from x10hosting servers and I am wondering if when Gmail gets it, the Gmail servers are looking for some kiond of predefinde yahoo handshake and when its not there its denying the mail msg. This was the only guess I could come up with.:dunno:
$headers = 'From: '.$email_from."\r\n"
If the e-mail address happens to be from a major mail domain like yahoo or hotmail I will not receive the e-mail in my Gmail account (the PHP mail msg send destination). So for example if a person types in the from email address tito897@yahoo.com and submits the form the mesage will never arrive, The same goes for Hotmail, Gmail, etc... However if it were tito987@ahoo.com or tito@fakedomain.com it gets to my Gmail.
I worked around it by hard coding the from address to a non-major mail carrier domain and I know get all mail it just comes under this address below.
$headers = "From: A-PERSON@website.com\n";
Is GMAIL not accepting the messages becasue it can tell they are not really coming from Yahoo or Hotmail etc... The PHP code would actually fire off the mail from x10hosting servers and I am wondering if when Gmail gets it, the Gmail servers are looking for some kiond of predefinde yahoo handshake and when its not there its denying the mail msg. This was the only guess I could come up with.:dunno:
Last edited: