|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.xdnote.xdcore.plugin.MailUtil
public class MailUtil
邮件发送类,目前可通过MailUtil发送HTML文件或文本文件
mail.smtp.host=smtp.163.com mail.smtp.port=25 mail.smtp.auth=true mail.smtp.user=88excel mail.smtp.pass=password mail.smtp.form=88excel@163.com
构造方法摘要 | |
---|---|
MailUtil()
|
方法摘要 | |
---|---|
static void |
sendHtmlMail(java.lang.String tomail,
java.lang.String subject,
java.lang.String context)
发送HTML格式的邮件 |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public MailUtil()
方法详细信息 |
---|
public static void sendHtmlMail(java.lang.String tomail, java.lang.String subject, java.lang.String context) throws MessagingException
tomail
- 收件人地址subject
- 邮件标题context
- 邮件内容
MessagingException
- 发送邮件时异常
ep: MailUtil.send("xxxx@163.com","系统邮件","<a href=\"http://www.xdnote.com/\" style=\"color:#fff000;\">xdnote</a>")
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |