public interface MailService
限定符和类型 | 方法和说明 |
---|---|
void |
sendMailWithAttachments(TemplateWithAttachmentMailTO template) |
void |
sendMailWithTemplate(TemplateMailTO mailParameters)
Send a velocity template based mail.
|
void |
sendSimpleMail(SimpleMailTO mailParameters)
Send a simple mail with toMailAddress, fromMailAddress, subject and bodyText.
|
void sendSimpleMail(SimpleMailTO mailParameters) throws org.springframework.mail.MailException
mailParameters
- Must parameters : toMailAddress, fromMailAddress, subject,bodyText Optional parameters : replyTo, ccMailAddressorg.springframework.mail.MailException
void sendMailWithTemplate(TemplateMailTO mailParameters) throws org.springframework.mail.MailException
mailParameters
- Must parameters : toMailAddress, fromMailAddress, subject,bodyText Optional parameters : replyTo, ccMailAddressorg.springframework.mail.MailException
void sendMailWithAttachments(TemplateWithAttachmentMailTO template) throws org.springframework.mail.MailException
org.springframework.mail.MailException