Hi,
I am trying to send an email to my gmail account through pub:client:smtp.
Iam running the pub:client:smtp service with the following inputs:
To: xxxxx@gmail.com
Subject: testing smtp
mailhost: smtp.gmail.com
mailhostPort: 465
user: xxxxx@gmail.com (my gmail id)
pass: xxxxxxxxxx (my gmail password)
TLS: none
when I run the service with above inputs, Iam getting the below error:
Could not run ‘smtp’
com.wm.app.b2b.server.ServiceException: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
com.wm.app.b2b.server.ServiceException: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
at pub.clientimpl.smtp(clientimpl.java:451)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Are these the right inputs which I have passed?
Are there any other configuration needs to be done from IS server page or gmail setting?
Please help.
Thanks.