Skip to main content

Posts

Showing posts from August, 2020

Enable SSL for SMTPEmail component

If you need to enable SSL for your SMTP email server it's very easy to configure a couple of properties and let ATG handle the necessary configs and setup for the corresponding JavaMail All you need to do is set the following properties in  /atg/dynamo/service/SMTPEmail/ : emailHandlerPort=465 (the default SSL port for SMTP) protocolName=smtps And that's it, turn on the debug for SMTPEmail and you will see it is attempting an SSL connection: **** debug      Mon Aug 03 17:05:22 CDT 2020    1596492322205   /atg/userprofiling/email/TemplateEmailSender    doSendEmailMessage: numMessages = 2 DEBUG: setDebug: JavaMail version 1.5.6 DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle] **** debug      Mon Aug 03 17:05:22 CDT 2020    1596492322215   /atg/dynamo/service/SMTPEmail   Attempting to open a connection... DEBUG SMTP: useEhlo true, useA...