public class SendEmail
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EMAIL_FROM_PROPERTY
vega.hipe.mail.from
|
static java.lang.String |
EMAIL_SMTP_PROPERTY
vega.hipe.mail.smtp
|
| Constructor and Description |
|---|
SendEmail() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
readFile(java.io.BufferedReader br) |
protected static java.lang.String |
readFile(java.io.File f) |
protected static MimeMessage |
sendHtmlDocument(HtmlDocument doc,
MimeMessage mess) |
static void |
sendHtmlDocument(java.lang.String to,
HtmlDocument doc)
Send an HTML document via email
|
static void |
sendHtmlDocument(java.lang.String from,
java.lang.String[] to,
java.lang.String smtpServer,
HtmlDocument doc)
Send an HTML document via email
|
static void |
sendHtmlDocument(java.lang.String from,
java.lang.String to,
java.lang.String smtpServer,
HtmlDocument doc)
Send an HTML document via email
|
static void |
sendMessage(java.lang.String from,
java.lang.String[] to,
java.lang.String smtpServer,
java.lang.String subject,
java.lang.String text)
Send a single email message
|
static void |
sendMessage(java.lang.String to,
java.lang.String subject,
java.lang.String text)
Send a single email message
|
static void |
sendMessage(java.lang.String from,
java.lang.String to,
java.lang.String smtpServer,
java.lang.String subject,
java.lang.String text)
Send a single email message
|
public static java.lang.String EMAIL_FROM_PROPERTY
public static java.lang.String EMAIL_SMTP_PROPERTY
public static void sendHtmlDocument(java.lang.String to,
HtmlDocument doc)
to - Email addresses to send the HTML document. Comma separateddoc - The Html document to sendpublic static void sendHtmlDocument(java.lang.String from,
java.lang.String to,
java.lang.String smtpServer,
HtmlDocument doc)
to - Email addresses to send the HTML document. Comma separateddoc - The Html document to sendfrom - The email address to send fromsmtpServer - The SMTP server to usepublic static void sendMessage(java.lang.String to,
java.lang.String subject,
java.lang.String text)
to - Email addresses to send the HTML document. Comma separatedsubject - The subject to use for the emailtext - The body of the messagepublic static void sendMessage(java.lang.String from,
java.lang.String to,
java.lang.String smtpServer,
java.lang.String subject,
java.lang.String text)
to - Email addresses to send the message. Comma separatedsubject - The subject to use for the emailtext - The body of the messagefrom - The email address to send fromsmtpServer - The SMTP server to usepublic static void sendMessage(java.lang.String from,
java.lang.String[] to,
java.lang.String smtpServer,
java.lang.String subject,
java.lang.String text)
to - Array with Email addresses to send the messagesubject - The subject to use for the emailtext - The body of the messagefrom - The email address to send fromsmtpServer - The SMTP server to usepublic static void sendHtmlDocument(java.lang.String from,
java.lang.String[] to,
java.lang.String smtpServer,
HtmlDocument doc)
to - Array with Email addresses to send the messagedoc - The Html document to sendfrom - The email address to send fromsmtpServer - The SMTP server to useprotected static MimeMessage sendHtmlDocument(HtmlDocument doc, MimeMessage mess) throws MessagingException
MessagingExceptionprotected static java.lang.String readFile(java.io.File f)
throws java.io.IOException,
java.text.ParseException
java.io.IOExceptionjava.text.ParseExceptionprotected static java.lang.String readFile(java.io.BufferedReader br)
throws java.io.IOException,
java.text.ParseException
java.io.IOExceptionjava.text.ParseException