html - php mail does not work with no-gmail adresse -
this question has answer here:
i have part of project when clients reseive mail after many actions, when testing mail function , have problem when adresse "gmail" , reseive mail, when mail no-gmail, mail not reseived !!! :( mail function:
function emaildemande($email, $name, $namel){ $subject = 'votre demande '; $headers = "from: xxx <contact@emoovio.com>\r\n"; $headers .= "bcc: abdelkhalek.oumaya@gmail.com, test@domain.com\r\n"; // $headers = 'from: xxx <'. $from. '>\r\n'; $headers .= "mime-version: 1.0\r\n"; $headers .= "content-type: text/html; charset=utf-8\r\n"; $message='htmlmessage'; mail($email, $subject, $message, $headers); };
please !!
mail complex in flow.
your mail headers , content
- does sender mail address exist mailbox or forwarder? sending mail non-existent mail address goes wrong.
- what mail headers, subject , body? more info: https://sendgrid.com/blog/10-tips-to-keep-email-out-of-the-spam-folder/
the sending mail server
be sure sending server (the smtp server) knows , allows sender mail address mail from.
blacklist
check if smtp server blacklisted. more info: http://mxtoolbox.com/blacklists.aspx
external mail service
- i recommend use external mail services, mailgun (http://mailgun.com). mailgun provides api sending, receiving , tracking mail. great advantage own mail server (or global ip) cannot blacklisted.
- for testing mail functionality, can use mailtrap (https://mailtrap.io).
Comments
Post a Comment