Email Services Not Work

0 votes

i try to send email from App42 HQ (Unified Notifications>Email>Compose)  and get error in App42 HQ Email Log

with this config

host : smtp.gmail.com

port  : 465

ssl : yes

i get  this error :

Error : javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1949)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at javax.mail.Transport.send0(Transport.java:194)
	at javax.mail.Transport.send(Transport.java:124)
	at com.shephertz.app42.paas.app42.email.App42EmailNotifier.notify(App42EmailNotifier.java:126)
	at com.shephertz.app42.paas.app42.email.EmailListener.serviceMail(EmailListener.java:181)
	at com.shephertz.app42.paas.app42.email.EmailListener$1.run(EmailListener.java:138)

and with this config:

host : smtp.gmail.com

port  : 587

ssl : no

i get this error :

Error : com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. n63sm12140238pgn.39 - gsmtp

	at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2108)
	at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1609)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1117)
	at javax.mail.Transport.send0(Transport.java:195)
	at javax.mail.Transport.send(Transport.java:124)
	at com.shephertz.app42.paas.app42.email.App42EmailNotifier.notify(App42EmailNotifier.java:126)
	at com.shephertz.app42.paas.app42.email.EmailListener.serviceMail(EmailListener.java:181)
	at com.shephertz.app42.paas.app42.email.EmailListener$1.run(EmailListener.java:138)

 

asked Jan 28, 2018 in Unity by happybabygame2020 (11 points)
edited Jan 28, 2018 by happybabygame2020

1 Answer

+1 vote
Hello Happybabygame,

 

Could you please make ssl value true in case of 587 port config and let me know if you still unable to send email.

 

Regards,

Himanshu Sharma
answered Jan 29, 2018 by hs00105 (2,005 points)
i test port 587 with ssl true and now can send email.

thanks Himanshu.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...