Package com.smartfoxserver.entities
Class SFSEmail
java.lang.Object
com.smartfoxserver.entities.SFSEmail
- All Implemented Interfaces:
Email
The class represent an email message in either plain text or valid HTML format that can be sent
via the mail service provided by the SmartFoxServer class.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the From address, which represents the sender of the emailGet the message of the email.intGet the priority of the email.Get the subject of the emailGet the recipient(s) of the email.toString()
-
Constructor Details
-
SFSEmail
- Parameters:
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 message
-
SFSEmail
- Parameters:
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)
-
-
Method Details
-
getFromAddress
Get the From address, which represents the sender of the email- Specified by:
getFromAddressin interfaceEmail- Returns:
- get the sender's email address
-
getToAddress
Get the recipient(s) of the email. You can specify either one email address or a list of comma separated email addresses. Make sure to only use commas for separating the addresses but no blank spaces.- Specified by:
getToAddressin interfaceEmail- Returns:
- the recipient(s) of the email
-
getSubject
Get the subject of the email- Specified by:
getSubjectin interfaceEmail- Returns:
- the subject of the email
-
getMessage
Get the message of the email. The message can be plain text or valid HTML- Specified by:
getMessagein interfaceEmail- Returns:
- the message of the email
-
getPriority
public int getPriority()Get the priority of the email. Values from 1 to 5 represent different priority levels in increasing order. If no priority is specified, no priority attribute is added to the email header.- Specified by:
getPriorityin interfaceEmail- Returns:
- the priority of the email.
-
toString
-