E - public abstract class Email<E extends Email<E>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
parameters |
| Constructor and Description |
|---|
Email() |
| Modifier and Type | Method and Description |
|---|---|
protected E |
addParameter(String name,
Object value) |
protected E |
addParameters(String name,
String[] values,
String sep) |
E |
from(String from)
发件人地址.
|
E |
fromName(String fromName)
发件人名称.
|
static GeneralEmail |
general()
普通发送邮件
|
protected String |
getParameter(String name) |
protected Map<String,String> |
getParameters() |
protected String[] |
getParameters(String name,
String sep) |
protected abstract E |
getThis() |
E |
headers(String headers)
邮件头部信息.
|
E |
labelId(int labelid)
本次发送所使用的标签ID.
|
E |
notRespEmailId()
不返回 emailId.
|
E |
replyTo(String replyTo)
设置用户默认的回复邮件地址.
|
protected void |
rewriteParameters() |
E |
subject(String subject)
标题.
|
static TemplateEmail |
template(String template)
根据模板名创建模块邮件。
|
protected String[] |
to() |
E |
to(String to)
收件人地址.
|
E |
to(String[] toAddrs)
收件人地址,批量设置。
|
E |
useNotification()
使用发送回执
|
public static GeneralEmail general()
public static TemplateEmail template(String template)
template - namepublic E from(String from)
必须设置.
from - 发件人地址public E fromName(String fromName)
fromName - 发件人名称public E replyTo(String replyTo)
replyTo - 回复邮件地址public E to(String to)
to - 收件人地址protected String[] to()
public E labelId(int labelid)
labelid - 标签IDpublic E headers(String headers)
headers - 邮件头部信息public E notRespEmailId()
public E useNotification()
protected void rewriteParameters()
protected abstract E getThis()
Copyright © 2015 JSTACK. All rights reserved.