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 numerous advantages compared to the standard, unauthenticated PHP mail() function :
- enhanced security,
- improved delivery reliability,
- more precise error handling,
- optimal compatibility with third-party mail servers,
- and complete traceability of sent emails.
- Recommended settings:
- Outgoing SMTP server =
mail.infomaniak.com
- SMTP port =
465
(with SSL) - Username = the complete & entire email address ( ? )
- Password = the one assigned to the email address you are using ( ? )
- Authentication required for sending emails (it is activated in the SMTP settings of your application; check "use the same settings as the incoming server" or enter a username (= complete & entire email address) and its password.
- Outgoing SMTP server =
SMTP configuration examples…
Prerequisites
- Have an email service.
- You have the option to 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 via SMTP from the web server:
... 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 via an SMTP method.
To ensure this, simply check the headers of a message received via this method, notably the line x-mailer
which may indicate, 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 E-mail.
- 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 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: