|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.email.SendEmail
public class SendEmail
Handles sending emails. See Javadocs for more information.
Constructor Summary | |
---|---|
SendEmail(String MAIL_TYPE,
String MAIL_SERVER)
Constructor for the SendEmail object |
Method Summary | |
---|---|
boolean |
doSend(String[] msgTo,
String msgFrom,
String msgSubject,
String msgBody)
Sends email to the given address(es). |
boolean |
doSend(String msgTo,
String msgFrom,
String msgSubject,
String msgBody)
Sends email to the given address. |
void |
doSendEmail(String[] toAddresses,
String fromAddress,
String msgSubject,
String msgBody)
Sends email to the given address(es). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SendEmail(String MAIL_TYPE, String MAIL_SERVER)
MAIL_TYPE
- The mail type, for example 'mail.smtp.host'MAIL_SERVER
- The mail server, for example 'localhost', 'my-mail-server'Method Detail |
---|
public void doSendEmail(String[] toAddresses, String fromAddress, String msgSubject, String msgBody) throws MessagingException
toAddresses
- To address(es)fromAddress
- From addressmsgSubject
- Email subject linemsgBody
- Email content body
MessagingException
- If errorpublic boolean doSend(String[] msgTo, String msgFrom, String msgSubject, String msgBody)
msgTo
- To address(es)msgFrom
- From addressmsgSubject
- SubjectmsgBody
- Message body
public boolean doSend(String msgTo, String msgFrom, String msgSubject, String msgBody)
msgTo
- To addressmsgFrom
- From addressmsgSubject
- SubjectmsgBody
- Message body
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |