一、调整confluence服务
1.在confluence安装目录下的server.xml中加一段邮件服务器的配置,加在confluence的Context中
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"> <!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties --> <Manager pathname=""/> <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/> <!--QQ企业邮箱配置--> <Resource name="mail/QqSMTPServer" auth="Container" type="javax.mail.Session" mail.smtp.host="QQ企业邮箱SMTP地址" mail.smtp.port="465" mail.smtp.auth="true" mail.smtp.user="邮箱登陆账号" password="邮箱密码" mail.smtp.starttls.enable="true" mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory" /> <!--QQ企业邮箱配置--> </Context>
2.下载javamail的jar包
下载地址【https://javaee.github.io/javamail/】
包名:javax.mail.jar ,javax.mail-api.jar ,mailapi.jar ,smtp.jar
# mkdir -p /opt/upload/mail-jar/ && cd /opt/upload/mail-jar # wget 'https://maven.java.net/content/repositories/releases/com/sun/mail/javax.mail/1.6.1/javax.mail-1.6.1.jar'# wget 'https://maven.java.net/content/repositories/releases/javax/mail/javax.mail-api/1.6.1/javax.mail-api-1.6.1.jar'# wget 'https://maven.java.net/content/repositories/releases/com/sun/mail/mailapi/1.6.1/mailapi-1.6.1.jar'# wget 'https://maven.java.net/content/repositories/releases/com/sun/mail/smtp/1.6.1/smtp-1.6.1.jar' # cp * /opt/conflucence安装目录/lib/ # cd /opt/conflucence安装目录/confluence/WEB-INF/lib # rm -f mail-1.4.5.jar
3.重启confluence
# /etc/init.d/confluence restart
二、在confluence节目配置邮箱
(1)进入邮件服务器配置界面
(2)填写JNDI【java:comp/env/mail/QqSMTPServer】,这个JDIN对应你在server.xml中添加的配置
配置完成后,点击“提交”
三、测试发送邮件
(1)点击“发送测试邮件”
(2)
热门评论
你好,请问如何在confluence将新建的模板加到原先有的蓝图里面