1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Use authenticated email sending from a website
This guide details the sending of authenticated e-mails from a website hosted by Infomaniak using an SMTP configuration; the configuration of an authenticated SMTP server is presented for the main CMS.
Preamble
- The use of authenticated SMTP for sending e-mails from your applications has many advantages compared to the standard non-authenticated PHP mail() function:
- enhanced security,
- better delivery reliability,
- more accurate error handling,
- optimal compatibility with third-party mail servers,
- and complete traceability of shipments.
- Recommended settings:
- Outgoing SMTP server =
mail.infomaniak.com
- SMTP port & encryption protocol and command/method to activate this protocol:
- Prioritize port
587
+ STARTTLS: this is the official technical standard and the most compatible method with the majority of modern systems for authenticated submission. - Tolerate port
465
+ SSL/TLS only as a compatibility option or alternative, specifying that it is implicit encryption, but that 587 remains the recommended choice.
- Prioritize port
- Username = the complete & full email address ( ? )
- Password = the one assigned to the email address you are using ( ? )
- Authentication required to send emails.
- Outgoing SMTP server =
SMTP configuration examples…
Prerequisites
- Have a mail service.
- You have the possibility to use the Mail Service offered by Infomaniak or any other mail service of your choice.
When you have an email address whose domain is attached to your website ( email@domain-site.xyz for example) enter its details to use it for sending from the web server via SMTP:
… on WordPress
- Log in to the WordPress administration panel.
- Install an SMTP extension (WP Mail SMTP works).
- Configure the extension, for example:
From then on, an email sent from a contact form present on the site (default form Divi for example) will be sent via an SMTP method.
To make sure, just look at the headers of a message received this way, in particular the line x-mailer
which may mention for example WPMailSMTP/Mailer/smtp
instead of PHPMailer
.
Note: the x-mailer can be any indication not necessarily representative of the actual sending method!
... on Prestashop
- Log in to the Prestashop admin panel.
- Go to Advanced Settings then Email.
- Configure sending via SMTP:
Then check (to avoid an error like Could not instantiate mail function
or sender mismatch
) that the address you have configured in these advanced settings matches the address that Prestashop uses when sending. To do this:
- Log in to the Prestashop admin panel.
- Go to Store Settings.
- Click on Contact in the left sidebar menu.
- On the Contacts tab, check that the email address mentioned is the same as the one configured previously.
- Edit email addresses if necessary:
- Click on the Stores tab.
- Check (and correct if necessary) that the email address mentioned is the same as the one configured previously:
... on Joomla
- Log in to the Joomla admin panel.
- Click on System in the left sidebar menu.
- Click on Global Configuration:
- Click on the Server tab.
- Configure sending via the SMTP sending method: