接口的使用
org.springframework.mail.MailMessage
使用MailMessage的程序包 程序包 说明 org.springframework.mail Spring's generic mail infrastructure.org.springframework.mail.javamail JavaMail support for Spring's mail infrastructure.org.springframework.mail中MailMessage的使用
实现MailMessage的org.springframework.mail中的类 修饰符和类型 类 说明 class
SimpleMailMessage
Models a simple mail message, including data such as the from, to, cc, subject, and text fields.参数类型为MailMessage的org.springframework.mail中的方法 修饰符和类型 方法 说明 void
SimpleMailMessage. copyTo(MailMessage target)
Copy the contents of this message to the given target message.org.springframework.mail.javamail中MailMessage的使用
实现MailMessage的org.springframework.mail.javamail中的类 修饰符和类型 类 说明 class
MimeMailMessage
Implementation of the MailMessage interface for a JavaMail MIME message, to let message population code interact with a simple message or a MIME message through a common interface.