Class EmailManager
- java.lang.Object
-
- org.openbravo.erpCommon.utility.poc.EmailManager
-
public class EmailManager extends Object
-
-
Constructor Summary
Constructors Constructor Description EmailManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static javax.mail.Session
newMailSession(ConnectionProvider connectionProvider, String clientId, String adOrgId)
Deprecated.static void
sendEmail(String host, boolean auth, String username, String password, String connSecurity, int port, String senderAddress, String recipientTO, String recipientCC, String recipientBCC, String replyTo, String subject, String content, String contentType, List<File> attachments, Date sentDate, List<String> headerExtras)
Deprecated.UsesendEmail(EmailServerConfiguration, EmailInfo)
instead.static void
sendEmail(EmailServerConfiguration conf, EmailInfo email)
Sends an email using the given SMTP Server configuration and the email definition contained in the email parameter.void
sendSimpleEmail(javax.mail.Session session, String from, String to, String bcc, String subject, String body, String attachmentFileLocations)
Deprecated.
-
-
-
Method Detail
-
sendEmail
public static void sendEmail(EmailServerConfiguration conf, EmailInfo email) throws Exception
Sends an email using the given SMTP Server configuration and the email definition contained in the email parameter.- Parameters:
conf
- The SMTP Server configurationemail
- The data of the email being sent- Throws:
Exception
-
sendEmail
@Deprecated public static void sendEmail(String host, boolean auth, String username, String password, String connSecurity, int port, String senderAddress, String recipientTO, String recipientCC, String recipientBCC, String replyTo, String subject, String content, String contentType, List<File> attachments, Date sentDate, List<String> headerExtras) throws Exception
Deprecated.UsesendEmail(EmailServerConfiguration, EmailInfo)
instead.- Throws:
Exception
-
newMailSession
@Deprecated public static javax.mail.Session newMailSession(ConnectionProvider connectionProvider, String clientId, String adOrgId) throws PocException, javax.servlet.ServletException
Deprecated.Since Openbravo 3.0MP9 onlysendEmail(String, boolean, String, String, String, int, String, String, String, String, String, String, String, String, List, Date, List)
is used for the full email sending cycle- Throws:
PocException
javax.servlet.ServletException
-
sendSimpleEmail
@Deprecated public void sendSimpleEmail(javax.mail.Session session, String from, String to, String bcc, String subject, String body, String attachmentFileLocations) throws PocException
Deprecated.Since Openbravo 3.0MP9 onlysendEmail(String, boolean, String, String, String, int, String, String, String, String, String, String, String, String, List, Date, List)
is used for the full email sending cycle- Throws:
PocException
-
-