Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012877Openbravo ERP02. Master data managementpublic2010-04-06 10:382011-07-20 18:12
networkb 
jonalegriaesarte 
normalmajoralways
newopen 
5
2.50MP14 
 
Core
No
0012877: It should be possible to send mails from Openbravo using SSL authentification
It should be possible to send mails from Openbravo using SSL authentification.
Now it is not possible because the EMail.java file use the javamail without especify the port used so by defautl the port 25 is used.

When configuring the email server it should be possible to specify if you are going to use ssl and specify wich port should be used to send the mail.
No tags attached.
Issue History
2010-04-06 10:38networkbNew Issue
2010-04-06 10:38networkbAssigned To => adrianromero
2010-05-14 11:25networkbNote Added: 0027227
2011-06-03 10:59dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:12dalsasuaAssigned Todalsasua => jonalegriaesarte

Notes
(0027227)
networkb   
2010-05-14 11:25   
Modify the file
src/org/openbravo/erpCommon/utility/poc/EmailManager.java

This line has to be commented to use SSL
//props.put("mail.transport.protocol", "smtp");

The following lines has to be added
props.put("mail.smtp.user",configuration.smtpserveraccount);
props.put("mail.smtp.port","465");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.starttls.enable","true");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");
props.put("mail.smtp.debug","true");