1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Use authenticated e-mail from a website
This guide details the sending of authenticated emails from a website hosted by Infomaniak using an SMTP configuration; the configuration of an authenticated SMTP server is presented for the main CMS.
Preamble
- Using authenticated SMTP for sending emails from your applications offers advantages in terms of security, reliability, error management, compatibility with third-party servers, and traceability compared to using unauthenticated PHP mail.
SMTP configuration examples…
Prerequisites
- Have an email service; you can use the Service Mail offered by Infomaniak or any other email service of your choice.
When you have an email address whose domain is attached to your website ( e-mail@domain-site.xyz for example) provide its details to use it for sending from the web server via SMTP:
… on WordPress
- Log in to the WordPress admin 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) it will be sent via an SMTP method.
To ensure this, simply check the headers of a message received this way, notably 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 Parameters then Email.
- Configure SMTP sending:
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 for sending. To do this:
- Log in to the Prestashop admin panel.
- Go to Store Settings.
- Click on Contact in the left sidebar.
- On the Contacts tab, check that the email address mentioned is the same as the one configured previously.
- Edit the 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 administration panel.
- Click on System in the left sidebar.
- Click on Global Configuration:
- Click on the Server tab.
- Configure sending via the SMTP method: