|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.util.Email
public final class Email
Send an email to one or more recipients with or without attachments.
| Field Summary | |
|---|---|
static String |
SMTPSERVER
Property key for the SMTP server. |
| Method Summary | |
|---|---|
static String |
mailAddress(String name,
String email)
|
static void |
send(String smtpServer,
String from,
String to,
String replyto,
String subject,
String text)
Send the email. |
static void |
sendAsHtmlWithAttachments(String smtpServer,
String from,
String to,
String replyto,
String subject,
String plainText,
String htmlText,
File[] referenced,
File[] attachments)
Send HTML message with attachments. |
static void |
sendToList(String smtpServer,
String from,
String[] toList,
String replyto,
String subject,
String message)
Send the email to a list of recipients. |
static void |
sendWithAttachments(String smtpServer,
String from,
String to,
String replyto,
String subject,
String text,
File[] attachments)
Send message with attachments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String SMTPSERVER
| Method Detail |
|---|
public static void send(String smtpServer,
String from,
String to,
String replyto,
String subject,
String text)
throws EmailException,
IOException
smtpServer - name of SMTP server to usefrom - email address and optionally name of senderto - email address and optionally name of recipientreplyto - email address and optionally name to reply tosubject - subject of messagetext - text body of email
EmailException
IOException
public static void sendToList(String smtpServer,
String from,
String[] toList,
String replyto,
String subject,
String message)
throws EmailException,
IOException
smtpServer - name of SMTP server to usefrom - email address and optionally name of sendertoList - list of email addresses and optionally names of recipientsreplyto - email address and optionally name to reply tosubject - subject of messagemessage - text body of email
EmailException
IOException
public static void sendWithAttachments(String smtpServer,
String from,
String to,
String replyto,
String subject,
String text,
File[] attachments)
throws EmailException,
IOException
smtpServer - name of SMTP server to usefrom - email address and optionally name of senderto - email address and optionally name of recipientreplyto - email address and optionally name to reply tosubject - subject of messagetext - text body of emailattachments - Array of files to attach
EmailException
IOException
public static void sendAsHtmlWithAttachments(String smtpServer,
String from,
String to,
String replyto,
String subject,
String plainText,
String htmlText,
File[] referenced,
File[] attachments)
throws EmailException,
IOException
smtpServer - name of SMTP server to usefrom - email address and optionally name of senderto - email address and optionally name of recipientreplyto - email address and optionally name to reply tosubject - subject of messageplainText - text body of emailhtmlText - HTML body of emailreferenced - Array of Files referenced withing the HTML bodyattachments - Array of files to attach
EmailException
IOException
public static String mailAddress(String name,
String email)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||