Package org.openxava.util
Class Emails
java.lang.Object
org.openxava.util.Emails
- Author:
- Janesh Kodikara, Denis Torres
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsend(String smtpHost, int smtpPort, String fromEmail, String toEmail, String subject, String content) static voidsend(String smtpHost, int smtpPort, String fromEmail, String toEmail, String ccEmail, String subject, String content) static voidstatic voidsend(String fromEmail, String senderName, String toEmail, String ccEmail, String subject, String content) static voidsend(String fromEmail, String toEmail, String subject, String content, Emails.Attachment... attachments) static voidsend(String toEmail, String subject, String content, Emails.Attachment... attachments) static voidsendInBackground(String toEmail, String subject, String content) static voidsendInBackground(String fromEmail, String toEmail, String subject, String content)
-
Constructor Details
-
Emails
public Emails()
-
-
Method Details
-
send
public static void send(String smtpHost, int smtpPort, String fromEmail, String toEmail, String subject, String content) throws javax.mail.internet.AddressException, javax.mail.MessagingException - Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingException
-
send
public static void send(String smtpHost, int smtpPort, String fromEmail, String toEmail, String ccEmail, String subject, String content) throws javax.mail.internet.AddressException, javax.mail.MessagingException - Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingException
-
sendInBackground
- Since:
- 5.9
-
sendInBackground
public static void sendInBackground(String fromEmail, String toEmail, String subject, String content) - Since:
- 5.9
-
send
public static void send(String toEmail, String subject, String content, Emails.Attachment... attachments) throws javax.mail.internet.AddressException, javax.mail.MessagingException - Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingException
-
send
public static void send(String fromEmail, String toEmail, String subject, String content, Emails.Attachment... attachments) throws javax.mail.internet.AddressException, javax.mail.MessagingException - Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingException
-
send
public static void send(String fromEmail, String senderName, String toEmail, String subject, String content) throws javax.mail.internet.AddressException, javax.mail.MessagingException, UnsupportedEncodingException - Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingExceptionUnsupportedEncodingException
-
send
public static void send(String fromEmail, String senderName, String toEmail, String ccEmail, String subject, String content) throws javax.mail.internet.AddressException, javax.mail.MessagingException, UnsupportedEncodingException - Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingExceptionUnsupportedEncodingException
-