PHP mail function

The mail function of PHP mail() can be used freely, within the framework of the respect of the law and our GTC.

We do not impose a limit on the number of emails sent in a given period.

However, we limit the speed at which they are sent.

Thus, it is possible to send 20, 2000 or 20000 e-mails, with the mail function of PHP, without risk of being blocked. However, they will be transmitted at a rate of about 600 e-mails per hour.

We reserve the right to immediately suspend any site linked to an abusive email.

Advice and optimization

Sender

First of all, the "From" must correspond to the domain name of the web site from which the e-mail is sent. The same goes for the associated headers such as envelope-from, reply-to, etc.

If the From of the sent email does not match the domain name associated with a Nuxit service, you may have a delivery problem. That said, the verification systems always refer to SPF, DKIM and DMARC.

In conclusion, what not to do :

  • Use an email address entered by a visitor as a sender for a message sent via your website.
  • Use the e-mail address of another provider, such as Gmail.com, Orange.fr or Hotmail.fr as the sender.

Content

  • Avoid using too muchimages in your email. If possible, try to combine several small images into one larger image. The image/text ratio must be balanced. An email composed exclusively of images has every chance of being considered as spam. So remember to accompany your images with sufficient text. In general, put graphics, photos, logos... in short everything that is not textual. Type in real HTML text for the textual part. Last but not least, do not embed your images directly in the message. Instead, make links to images hosted on the web. This allows you to cross the anti-spam barriers, lighten the weight of your message, and at the same time increase the sending speed!
  • Ban Obviously, words or expressions with a double meaning that could have a sexual or "medicinal" connotation. Also avoid words like "Free", "Promotion", "Promo", "Discount", "Offer", "Sale", "Gift"... or certain characters, such as the exclamation mark or the question mark in the subject of the message. To find out which characters to avoid, you can visit the Microsoft site for Outlook. More subtly, avoid putting your hyperlinks behind terms such as "Click here".
  • The use of certain terms is not the only clue on which spam filters base their rejection of an e-mail. They also take into account the formatas the font size or its color. Thus, avoid writing the entire message in a font equal to or larger than 16. Also, red and green should be avoided.
  • Avoid as much as possible the files in attachments. Especially if they are PDF files and your message contains little text. Instead, put your files on a web server and put download links in your email. By doing this, you reduce the weight of the message and therefore increase the speed of sending.
  • Even if you want to send your message in HTML format, also fill in the message part Text. You will get a double benefit: on the one hand, recipients who cannot read HTML (it still exists!) will still be able to read your email. On the other hand, anti-spam filters are generally less strict with messages in double format.
  • Don't put your URLs as IP addresses, and avoid URLs containing percentages and dollars. Don't put a tracked link behind a URL either. Instead, put something like "visit our site", or put your URL as an image.

Bulk sending

  • Each e-mail sent must mention a clear and functional unsubscribe link.
  • You must not send e-mails that to persons who have intentionally requested the reception of your messages.
Updated on 26 September 2022

Related Articles