public class SFSEmail extends java.lang.Object implements Email
IMailerService
,
SFSPostOffice
Constructor and Description |
---|
SFSEmail(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String message) |
SFSEmail(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String message,
int priority) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFromAddress()
Get the From address, which represents the sender of the email
|
java.lang.String |
getMessage()
Get the message of the email.
|
int |
getPriority()
Get the priority of the email.
|
java.lang.String |
getSubject()
Get the subject of the email
|
java.lang.String |
getToAddress()
Get the recipient(s) of the email.
|
java.lang.String |
toString() |
public SFSEmail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String message)
from
- the sender's email addressto
- the email recipient(s). Either one email or a list of comma separated email addressessubject
- the subject of the emailmessage
- a plain text or valid HTML email messagepublic SFSEmail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String message, int priority)
from
- the sender's email addressto
- the email recipient(s). Either one email or a list of comma separated email addressessubject
- the subject of the emailmessage
- a plain text or valid HTML email messagepriority
- Acceptable values are 1 through 5 (in increasing order of priority)public java.lang.String getFromAddress()
getFromAddress
in interface Email
public java.lang.String getToAddress()
getToAddress
in interface Email
public java.lang.String getSubject()
getSubject
in interface Email
public java.lang.String getMessage()
getMessage
in interface Email
public int getPriority()
getPriority
in interface Email
public java.lang.String toString()
toString
in class java.lang.Object