- java - Using Javamail to connect to Gmail smtp server ignores specified port and tries to use 25 - Stack Overflow
- javamail - Problem in sending mail with Gmail SMTP using Java mail - Stack Overflow
- tomcat - Trouble sending via gmail's SMTP server with Java - Stack Overflow
- JavaMail FAQ for how to configure JavaMail to access Gmail
<util:properties id="gmailProperties587">
<prop key="mail.smtp.host">smtp.gmail.com</prop>
<prop key="mail.smtp.auth">true</prop>
<prop key="mail.smtp.port">587</prop>
<prop key="mail.debug">true</prop>
<prop key="mail.smtp.starttls.enable">true</prop>
<prop key="mail.smtp.quitwait">false</prop>
</util:properties>
<util:properties id="gmailProperties465">
<prop key="mail.smtp.host">smtp.gmail.com</prop>
<prop key="mail.smtp.auth">true</prop>
<prop key="mail.smtp.port">465</prop>
<prop key="mail.debug">true</prop>
<prop key="mail.smtp.quitwait">false</prop>
<prop key="mail.smtp.socketFactory.port">465</prop>
<prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>
<prop key="mail.smtp.socketFactory.fallback">false</prop>
</util:properties>
No comments:
Post a Comment