| 程序包 | 说明 |
|---|---|
| com.easycodebox.common.mail |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
TemplateProcessor.process(String template,
Object model)
处理模板
|
String |
StringTemplateProcessor.process(String template,
Object model)
替换模板内的占位符格式有以下三种:
template:{}走路掉{}里了 model:["小明", "坑"] --> 小明走路掉坑里了
template:{0}走路掉{1}里了 model:["小东", "缸"] --> 小东走路掉缸里了
template:{name}走路掉{thing}里了 model:{"name": "小李", "thing": "池塘"} --> 小李走路掉池塘里了
|
String |
FreemarkerTemplateProcessor.process(String template,
Object model) |
protected String |
SimpleMailSender.processTemplate(String template,
Object model)
处理模板内容
|
void |
CoupleMailSender.sendHtmlTmpl(String coupleKey,
Object subjectModel,
Object contentModel,
String... to)
发送模板邮件 - 邮件内容为HTML格式
|
void |
SimpleMailSender.sendHtmlTmpl(String subject,
String template,
Object model,
String... to)
发送模板邮件 - 邮件内容为HTML格式
|
void |
CoupleMailSender.sendTmpl(String coupleKey,
Object subjectModel,
Object contentModel,
String... to)
发送模板邮件 - 邮件内容为文本格式
|
void |
SimpleMailSender.sendTmpl(String subject,
String template,
Object model,
String... to)
发送模板邮件 - 邮件内容为文本格式
|
Copyright © 2017. All rights reserved.