Hi @lmalyala
You need to create one OSGi configuration with name "com.day.cq.mailer.DefaultMailService.xml" and add the below config into it.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
smtp.host="smtp.gmail.com"
smtp.port="465"
smtp.user="demo@gmail.com"
smtp.password="Demo@123"
from.address="no-reply@gmail.com"
smtp.ssl="{Boolean}true"
smtp.starttls="{Boolean}true"
debug.email="{Boolean}true"/>
User name and password should be of the gmail account.
Please ensure to turn off the less secure app in gmail so it will not stop sending the email. Also note that you can send upto 500 emails using gmail account.
https://support.google.com/accounts/answer/6010255?hl=en
Thanks!