This article applies as of PRTG 24

Setting up SMTP Delivery to use gmail PRTG v13 log show error: Error sending "Email": Connection failed ("smtp.gmail.com")



After testing the PRTG Mail Delivery using Google Apps (aka G-Suite) (should be the same for plain gmail accounts). This is what the set-up should look like:


Delivery MechanismUse one SMTP relay server
Sender Email Addressmynotificationaccount@gmail.com
Sender NamePRTG
HELO Identprtgserver.domain.tld(optional)
SMTP Relay Server:smtp.gmail.com
SMTP Relay Port465
SMTP Relay AuthenticationUse standard SMTP authentication
SMTP Relay User Namemynotificationaccount@gmail.com
SMTP Relay Passwordyoursecurepassword
Connection SecurityUse SSL/TLS if the server supports it
SSL/TLS MethodTLS 1.2


It's also very important to note that you need to change a setting for the Gmail/Google Apps account that you want to use for mail sending over SMTP. The setting is called Allow less secure apps and is described in this page. Here's the link to change the settings for your Google Mail account:

Even with everything set-up correctly in PRTG you will receive the following error if you don't allow the "less secure apps":


Error sending "Email": Authentication unsuccessful ("smtp.gmail.com")

Even with everything set up correctly in PRTG you will sometimes also receive the following error if you don't manually confirm the "Unlock Captcha" at the following Google URL from a browser where you're logged in with the corresponding Google Account: https://accounts.google.com/DisplayUnlockCaptcha


Error sending "Email": Authentication unsuccessful ("smtp.gmail.com")



Messages where sent successfully in PRTG 21.3.70.1629 with the above setup.


Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.