jfinal-mailer一款支持线程池的异步邮件,可以使用freemarker作为模板的邮件插件
2014-09-12 13:12
726 查看
https://github.com/Dreampie/jfinal-mailer jfinal-mailer异步的邮件发送插件:
目前刚刚发布第一个版本0.1:
使用方法:
在jfinal config里configPlugin方法加入
使用freemarker作为模板方法:
https://github.com/Dreampie?tab=repositories 目录下有多款插件:
cn.dreampie.jfinal-shiro https://github.com/Dreampie/jfinal-shiro shiro插件
cn.dreampie.jfinal-shiro-freemarker https://github.com/Dreampie/jfinal-shiro-freemarker shiro插件实现的freemarker标签库
cn.dreampie.jfinal-web https://github.com/Dreampie/jfinal-web 相关web插件,简洁model实现
cn.dreampie.jfinal-utils https://github.com/Dreampie/jfinal-utils 部分jfinal工具
cn.dreampie.jfinal-tablebind https://github.com/Dreampie/jfinal-tablebind jfinal的table自动绑定插件,支持多数据源
cn.dreampie.jfinal-flyway https://github.com/Dreampie/jfinal-flyway 数据库脚本升级插件,开发中升级应用时,使用脚本同步升级数据库或者回滚
cn.dreampie.jfinal-captcha https://github.com/Dreampie/jfinal-captcha 基于jfinal render的超简单验证吗插件
cn.dreampie.jfinal-quartz https://github.com/Dreampie/jfinal-quartz 基于jfinal 的quartz管理器
cn.dreampie.jfinal-sqlinxml https://github.com/Dreampie/jfinal-sqlinxml 基于jfinal 的类似ibatis的sql语句管理方案
cn.dreampie.jfinal-lesscss https://github.com/Dreampie/jfinal-lesscss java实现的lesscsss实时编译插件,可以由于jfinal
cn.dreampie.jfinal-coffeescript https://github.com/Dreampie/jfinal-coffeescript java实现的coffeescript实时编译插件,可以由于jfinal
cn.dreampie.jfinal-akka https://github.com/Dreampie/jfinal-akka java使用akka执行异步任务
cn.dreampie.jfinal-mailer https://github.com/Dreampie/jfinal-mailer 使用akka发布邮件的jfinal插件
cn.dreampie.jfinal-slf4j https://github.com/Dreampie/jfinal-slf4j 让jfinal使用slf4j的日志api
部分内容借鉴了网络资料
<dependency> <groupId>cn.dreampie</groupId> <artifactId>jfinal-mailer</artifactId> <version>${jfinal-mailer.version}</version> </dependency>
目前刚刚发布第一个版本0.1:
<jfinal-mailer.version>0.1</jfinal-mailer.version>
使用方法:
在jfinal config里configPlugin方法加入
//emailer插件 plugins.add(new MailerPlugin());
使用freemarker作为模板方法:
Mailer.sendHtml("测试", "<a href='www.dreampie.cn'>Dreampie</a>", "173956022@qq.com"); Mailer.sendHtml("Dreampie.cn-梦想派",new FreemarkerLoader("mails/signup_email.ftl").set("full_name", "先生/女士").set("safe_url", getAttr("_webRootPath") + "/tosignup?token=" + token.get("uuid")).getHtml(), regUser.getStr("email"));//set参数和至,getHtml获取模板编译的html内容,发送html内容
sendText(final String subject, final String body, final String... recipients) //发送文本 sendAttachment(final String subject, final String body, final EmailAttachment attachment, final String... recipients)//发送附件
https://github.com/Dreampie?tab=repositories 目录下有多款插件:
cn.dreampie.jfinal-shiro https://github.com/Dreampie/jfinal-shiro shiro插件
cn.dreampie.jfinal-shiro-freemarker https://github.com/Dreampie/jfinal-shiro-freemarker shiro插件实现的freemarker标签库
cn.dreampie.jfinal-web https://github.com/Dreampie/jfinal-web 相关web插件,简洁model实现
cn.dreampie.jfinal-utils https://github.com/Dreampie/jfinal-utils 部分jfinal工具
cn.dreampie.jfinal-tablebind https://github.com/Dreampie/jfinal-tablebind jfinal的table自动绑定插件,支持多数据源
cn.dreampie.jfinal-flyway https://github.com/Dreampie/jfinal-flyway 数据库脚本升级插件,开发中升级应用时,使用脚本同步升级数据库或者回滚
cn.dreampie.jfinal-captcha https://github.com/Dreampie/jfinal-captcha 基于jfinal render的超简单验证吗插件
cn.dreampie.jfinal-quartz https://github.com/Dreampie/jfinal-quartz 基于jfinal 的quartz管理器
cn.dreampie.jfinal-sqlinxml https://github.com/Dreampie/jfinal-sqlinxml 基于jfinal 的类似ibatis的sql语句管理方案
cn.dreampie.jfinal-lesscss https://github.com/Dreampie/jfinal-lesscss java实现的lesscsss实时编译插件,可以由于jfinal
cn.dreampie.jfinal-coffeescript https://github.com/Dreampie/jfinal-coffeescript java实现的coffeescript实时编译插件,可以由于jfinal
cn.dreampie.jfinal-akka https://github.com/Dreampie/jfinal-akka java使用akka执行异步任务
cn.dreampie.jfinal-mailer https://github.com/Dreampie/jfinal-mailer 使用akka发布邮件的jfinal插件
cn.dreampie.jfinal-slf4j https://github.com/Dreampie/jfinal-slf4j 让jfinal使用slf4j的日志api
部分内容借鉴了网络资料
相关文章推荐
- 自己用的一款模板解析程序V0.1(支持插件和扩展)(思路讨论和使用体验)
- 自己用的一款模板解析程序(支持插件和扩展)(思路讨论和使用体验)
- php发送邮件教程,支持发送有附件的电子邮件-PHPMailer使用教程
- java使用Freemarker模板发送固定格式邮件
- jfinal发送邮件插件jfinal-mailer
- 一款可以让IE支持CSS3的插件
- Spring 4 使用Freemarker模板发送邮件&添加附件
- 采用freemarker模板引擎作为Java邮件模板
- JFinal中使用freemarker模板时session对象取不出的解决办法
- jenkins 使用邮件模板插件发送邮件
- JFinal使用Freemarker作为展示层中的国际化配置使用
- SpringBoot使用FreeMarker模板发送邮件
- Spring 发送邮件 (3) Spring使用模板Freemarker
- 给JFinal添加Shiro插件功能,支持Shiro所有注解-使用篇
- c#动态编译,自己做了个c#脚本管理框架,可以作为其他应用的插件使用。增强程序的拓展性
- Alcatraz的安装和使用(Alcatraz 是一款 Xcode的插件管理工具,可以用来管理XCode的 插件、模版以及颜色配置的工具。)
- java使用freemarker作为模板导出Excel表格
- 发邮件窗体【支持编辑邮件模板,使用wse多线程上传附件及发邮件(带附件)】以及在服务器端自动发邮件
- spring使用FreeMarker模板发送邮件及附件笔记
- Spring 4 使用Freemarker模板发送邮件&添加附件