Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
DTaylor
Contributor
Contributor

tSendMail component issue

Hi,

I am attempting to use the tSendMail component with our company credentials which have been supplied by our Network Admin (we use Amazon AWS)... below are the settings supplied...

0695b00000hubEiAAI.png

Speaking to the Network Admin he advised that he completed some testing at the server OS level and proved that the server itself can send emails via SES using the details / port number etc that he supplied.

Just wondered if anyone has any advice on the potential issue please.

The error received is below...

Exception in component tSendMail_1 (TestEmail)

javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.eu-west-2.amazonaws.com, port: 587;

 nested exception is:

javax.net.ssl.SSLException: Unsupported or unrecognized SSL message

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2212)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:722)

at javax.mail.Service.connect(Service.java:342)

at javax.mail.Service.connect(Service.java:222)

at javax.mail.Service.connect(Service.java:171)

at javax.mail.Transport.send0(Transport.java:230)

at javax.mail.Transport.send(Transport.java:100)

at salesforceimplementation.testemail_0_1.TestEmail.tSendMail_1Process(TestEmail.java:550)

at salesforceimplementation.testemail_0_1.TestEmail.runJobInTOS(TestEmail.java:1200)

at salesforceimplementation.testemail_0_1.TestEmail.main(TestEmail.java:898)

Caused by: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message

at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:457)

at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:175)

at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)

at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1507)

at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1417)

at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:456)

at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:427)

at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:602)

at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:376)

at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:193)

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2160)

... 9 more

[FATAL] 14:31:12 salesforceimplementation.testemail_0_1.TestEmail- tSendMail_1 Could not connect to SMTP host: email-smtp.eu-west-2.amazonaws.com, port: 587

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello @David Taylor​ ,

How about to uncheck the box 'SSL Support' and only check the box STARTTLS Support?

Thanks

Aiming

View solution in original post

4 Replies
Anonymous
Not applicable

Hello @David Taylor​ ,

Please check the box STARTTLS Support in tSendMail as the below to re-try?

0695b00000huhM4AAI.pngBest regards

Aiming

DTaylor
Contributor
Contributor
Author

Thanks Achen,

 

I tried that also... with and without being checked and the same happens (I had it checked initially).

 

Any other suggestions welcomed.

 

Kind regards,

David

Anonymous
Not applicable

Hello @David Taylor​ ,

How about to uncheck the box 'SSL Support' and only check the box STARTTLS Support?

Thanks

Aiming

DTaylor
Contributor
Contributor
Author

Thank you Achen,

 

That worked... I appreciate your help.

 

Kind regards,

David