|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.mail.SimpleMailer
public class SimpleMailer
Convenience class for sending simple emails. It does not cover most advanced needs (HTML images, attachments, etc).
Constructor Summary | |
---|---|
SimpleMailer(String host,
String sender)
Constructor. |
|
SimpleMailer(String host,
String sender,
String contentType)
Constructor. |
|
SimpleMailer(String host,
String sender,
String[] recipients)
Constructor. |
|
SimpleMailer(String host,
String sender,
String[] recipients,
String contentType)
Constructor. |
Method Summary | |
---|---|
void |
send(String[] recipients,
String subject,
String body)
Sends an email. |
void |
send(String subject,
String body)
Sends an email. |
void |
send(String recipient,
String subject,
String body)
Sends an email. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleMailer(String host, String sender)
host
- mail server hostsender
- email address of sender ("From" field)public SimpleMailer(String host, String sender, String[] recipients)
host
- mail server hostsender
- email address of sender ("From" field)recipients
- email address of recipients ("To" field)public SimpleMailer(String host, String sender, String contentType)
host
- mail server hostsender
- email address of sender ("From" field)contentType
- content type of the email messagepublic SimpleMailer(String host, String sender, String[] recipients, String contentType)
host
- mail server hostsender
- email address of sender ("From" field)recipients
- email address of recipients ("To" field)contentType
- content type of the email messageMethod Detail |
---|
public final void send(String subject, String body) throws javax.mail.MessagingException
subject
- email subjectbody
- email body (content)
javax.mail.MessagingException
- problem sending emailpublic final void send(String recipient, String subject, String body) throws javax.mail.MessagingException
recipient
- email recipient ("To" field)subject
- email subjectbody
- email body (content)
javax.mail.MessagingException
- problem sending emailpublic final void send(String[] recipients, String subject, String body) throws javax.mail.MessagingException
recipients
- email recipients ("To" field)subject
- email subjectbody
- email body (content)
javax.mail.MessagingException
- problem sending email
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |