Set up a mail session for the Confluence distribution to use Gmail as follows:
Add the following to your server.xml file found in <confluence-install>/conf/ (add it just before the </Context> tag):
<Resource name="mail/GmailSMTPServer"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="yourEmailAddress@gmail.com"
password="yourPassword"
mail.smtp.starttls.enable="true"
mail.transport.protocol="smtps"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
|
Edit the server settings as necessary, and set the JNDI Location as:
java:comp/env/mail/GmailSMTPServer |
Note that the JNDI Location is case sensitive and must match the resource name specified in server.xml.