I have successfully used the tomcat mail with gmail before, but this installation requires me to use our Office 365 account.
Here is my server.xml file section for mail configuration.
Here is my server.xml file section for mail configuration.
Code: Select all
However, I keep getting this when trying to check the email function from the admin panel.<Resource name="mail/OpenKM"
auth="Container" type="javax.mail.Session"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.office365.com"
mail.smtp.from="Docs@example.net"
mail.smtp.username="Docs"
mail.smtp.password="password"
mail.smtp.port="587"
mail.smtp.startttls.enable="true"
mail.debug="true"
mail.smtp.auth="true"/>
Code: Select all
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
DEBUG SMTP: need username and password for authentication
Last edited by dferguson on Fri Feb 08, 2019 1:09 pm, edited 1 time in total.