1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Using Authenticated Mail Sending from a Website
This guide details sending authenticated emails from a website hosted by Infomaniak using SMTP configuration; the setup of an authenticated SMTP server is presented for the main CMS.
Using authenticated SMTP to send 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.
Prerequisites
- own a mailing service; you have the option to use the Mail Service offered by Infomaniak or any other mailing service of your choice
Example of SMTP Configuration
If you have an email address associated with your website domain (email@domain-site.xyz e.g.), enter its details to use it for sending from the web server via SMTP:
on WordPress
- log in to the WordPress admin dashboard
- install an SMTP plugin (WP Mail SMTP works)
- configure the plugin, e.g.:
From then on, an email sent from a contact form present on the site (default Divi form e.g.) will be sent via SMTP. To verify, simply check the headers of a message received this way, especially the x-mailer
line 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 dashboard
- go to Advanced Parameters 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 configured in these advanced settings matches the address used by Prestashop when sending emails. To do this:
- log in to the Prestashop admin dashboard
- go to Store Settings
- click on Contact in the left sidebar
- in the Contacts tab, verify that the email address mentioned is the same as the one configured earlier
- edit email addresses if necessary
- click on the Stores tab
- verify (and correct if necessary) that the mentioned email address is the same as the one configured earlier
on Joomla
- log in to the Joomla admin dashboard
- click on System in the left sidebar
- click on Global Configuration
- click on the Server tab
- configure sending via the SMTP sending method: