public class SystemMail extends Object
It is meant to serve as an emergency communication, and not as a way to send general information. To do that you can use the available addOns.
Modifier and Type | Method and Description |
---|---|
static SystemMail |
createSystemMail()
Creates a SystemMail.
|
void |
sendMail(String toAddress,
String subject,
String content)
Sends a mail to the address of
toAddress with a subject of subject and a content of
content WITHOUT an attachment |
void |
sendMail(String toAddress,
String subject,
String content,
String attachmentName,
String attachmentPath)
Sends a mail to the address of
toAddress with a subject of subject and a content of
content with an attachment |
public static SystemMail createSystemMail() throws IllegalAccessException
IllegalAccessException
- thrown if this method is called more than oncepublic void sendMail(String toAddress, String subject, String content, String attachmentName, String attachmentPath)
toAddress
with a subject of subject
and a content of
content
with an attachmenttoAddress
- the address to send the mail tosubject
- the subject of the email to sendcontent
- the content of the email (without attachment)attachmentName
- the name of the attachmentattachmentPath
- the file path to the attachmentpublic void sendMail(String toAddress, String subject, String content)
toAddress
with a subject of subject
and a content of
content
WITHOUT an attachmenttoAddress
- the address to send the mail tosubject
- the subject of the email to sendcontent
- the content of the email (without attachment)Copyright © 2016. All rights reserved.