public interface IMailerService
extends com.smartfoxserver.bitswarm.service.IService
Modifier and Type | Method and Description |
---|---|
com.smartfoxserver.v2.config.MailerSettings |
getConfiguration()
Obtain the configuration settings of the service
|
void |
sendMail(Email email)
Sends the email to the recipient, or list of recipients, specified in the Email argument.
|
void |
sendMail(Email email,
IMailerCallbackHandler callBack)
Sends the email to the recipient, or list of recipients, specified in the Email argument and get an asynchronous event when
the email is delivered.
|
void |
sendMail(Email email,
IMailerCallbackHandler callBack,
int delaySeconds)
Sends an email in the future.
|
void sendMail(Email email) throws javax.mail.MessagingException
In order to send an email to multiple recipients the Email toAddress should contain comma-separated (and valid) email addresses. Don't use any blank spaces in the separation of each address.
NOTE: Sending emails requires to add the mailapi.jar (found under SFS2X/lib/) to your project's libraries.
email
- the email to sendjavax.mail.MessagingException
- an error might be caused by malformed email addresses either in the TO or FROM fieldsSFSEmail
void sendMail(Email email, IMailerCallbackHandler callBack) throws javax.mail.MessagingException
In order to send an email to multiple recipients the Email toAddress should contain comma-separated (and valid) email addresses. Don't use any blank spaces in the separation of each address.
NOTE: Sending emails requires to add the mailapi.jar (found under SFS2X/lib/) to your project's libraries.
email
- the email to sendcallBack
- the callback handler, if null no event will be firedjavax.mail.MessagingException
- an error might be caused by malformed email addresses either in the TO or FROM fieldsSFSEmail
void sendMail(Email email, IMailerCallbackHandler callBack, int delaySeconds) throws javax.mail.MessagingException
In order to send an email to multiple recipients the Email toAddress should contain comma-separated (and valid) email addresses. Don't use any blank spaces in the separation of each address.
NOTE: Sending emails requires to add the mailapi.jar (found under SFS2X/lib/) to your project's libraries.
email
- the email to sendcallBack
- the callback handler, if null no event will be fireddelaySeconds
- the amount of seconds to wait before sendint the mailjavax.mail.MessagingException
- an error might be caused by malformed email addresses either in the TO or FROM fieldsSFSEmail
com.smartfoxserver.v2.config.MailerSettings getConfiguration()