Have you ever had to change a WordPress user email and waited for the confirmation email, with the link to click to confirm the change, but the email never arrived in your inbox? Or did you ever change your WordPress password and wait for the confirmation email which never arrived in your inbox? Or have you ever used the new “Site Health” feature after something went wrong and had to wait for the confirmation email with the personalized link to login into WordPress, but never received it? Or did you ever have to wait for the email for a newly registered user, but that mail never came? If you host your website on a Synology NAS, this problem will occur every time WordPress has to send you an email.
There are two different scenarios with two different solutions. The first scenario with the first solution involves the use of the official Synology WordPress package. The second scenario with the second solution involves the use of the official WordPress version downloaded manually from wordpress.org which is also what I am currently using.
For the scenario that involves the use of the official Synology WordPress package, follow the official Synology guide on How to use Gmail SMTP server to send emails for DSM. Once you have set up your DSM Web Station, it will send emails using PHP. This also includes sending emails from a third-party website package released by Synology, such as WordPress, MantisBT, Joomla etc.
For the second scenario that involves the use of the WordPress package downloaded manually from wordpress.org (the one I am currently using), follow the instructions in the images below.
- Download the WP Mail SMTP plugin.
- Activate the plugin.
- Set up the plugin.
- Enter your email in the Mail section, in my case “gmail” example: email@example.com
- Under Mailer choose “Other SMTP”.
- Under SMTP Host enter smtp.gmail.com
- Under encryption choose SSL (mandatory!).
- Under Auto TLS select ON.
- Under Authentication select ON.
- Under SMTP username choose your gmail mail.
- Under SMTP password choose your gmail password.
- Follow the instructions in the image below.
Once you have executed the instructions to the letter, your WordPress will finally be able to connect to the SMTP service and send emails whenever they are needed.
This post was updated on Saturday / August 13th, 2022 at 10:49 AM