1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Authenticated mail (SMTP) from a website
This guide details sending authenticated emails from a website hosted by Infomaniak using SMTP configuration. You need to have a mail service for this. You have the option to use the Mail Service offered by Infomaniak or any other mail service of your choice.
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.
This guide details configuring an authenticated SMTP server for major CMS platforms.
Example of SMTP configuration
If you have an email address whose domain is associated with 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 plugin (WP Mail SMTP works)
- Configure the plugin, for example:
From then on, an email sent from a contact form on the site (e.g., default Divi form) will be sent via SMTP. To ensure this, simply check the headers of a message received through this method, especially the x-mailer
line, which will mention e.g., WPMailSMTP/Mailer/smtp
instead of PHPMailer
.
on Prestashop
- Log in to the Prestashop admin panel
- Go to Advanced Settings then Email
- Configure sending via SMTP:
Then verify (to avoid an error like Could not instantiate mail function
or sender mismatch
) that the address you configured in these advanced settings matches the address Prestashop uses for sending. To do this:
- Log in to the Prestashop admin panel
- Go to Shop Parameters
- Click on Contact in the left sidebar menu
- In the Contacts tab, check that the email address listed matches the one configured earlier
- Edit the email addresses if necessary
- Click on the Stores tab
- Verify (and correct if necessary) that the email address listed matches the one configured earlier
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: