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

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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -