# 嗨达

12/1
23:02

## MangerEngine ServiceDesk Plus用starttls认证发送邮件

• ServiceDeskPlus版本号是9.3构建号9317；
• 邮件服务商是office365，发件认证使用starttls。

• 邮件类型:SMTPS
• 启用传输层安全:Yes
• 端口:587

ManageEngine\ServiceDesk\server\default\conf\wrapper.conf中在
wrapper.java.additional.27=-Dconnection.track=true

wrapper.java.additional.28=-Dmail.smtp.starttls.enable=true

The issue I was having with STARTTLS was caused by me getting a secure transport:

transport = session.getTransport("smtps");

After changing it to “smtp” i was able to use STARTTLS.

Edit the wrapper.conf and search for the line

wrapper.java.additional.18=-Duser.region=US

In the next line append the following text (Next line to the above line)

wrapper.java.additional.19=-Dmail.smtp.starttls.enable=true

Now you can restart the service and check it should work.

﻿