Please let me know the SMTP configuration that needs be configured in Day CQ Mail Service to connect to gmail.
I have tried the following
# Configuration created by Apache Sling JCR Installer
smtp.password="my gmail account password"
from.address="my gmail id"
I have tried the port numbers both 465 and 587.
https://myaccount.google.com/lesssecureapps . I have turned on this setting as well. But I am not able to connect getting the connection refused error.
Please help me in this regard.
Thanks in advance
Can you try to enable SSL?
Below is google smtp relay servers details
Can you check STEP 2 also at Send email from a printer, scanner, or app - G Suite Administrator Help
Try writing your own email serve using Java MAIL API. See if that works for your use case. See this article -- Scott's Digital Community: Creating custom CQ email services
For some reason - gmail and MessageServiceGateway seems to produce issues.