SMTP configuration

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.

Hi,

you should enable SSL/TLS for this invocation.

Eventually you have to use another port.

See Gmail Einstellungen für IMAP, POP3 und SMTP - Gmail-Blog for details.
Unfortunately this site is in german, but I am sure that there is an english equivalent available.

Regards,
Holger

TLS Implicit/Explicit?? which one are we supposed to use?

that is correct

Hi, Techie Webm! Were you able to send an email using the pub:client:smtp?
I am also having a hard time doing it. It always says “Connection timed-out” or some sorts.

I wonder if you did some SMTP Configurations and all. Thanks.