和发送电子邮件的Smarty的设计
2016-08-23
1 0 0
暂无评分
其他
如何获取积分?
- SmartyMailer class
- Create beautiful mails using Smarty
- Design them with standard CSS stylesheets
- SmartyMailer will convert your CSS to inline styles for correct rendering into e-mail clients
- Example Usage :
- Displaying :
- $SmartyMailer = new SmartyMailer();
- $SmartyMailer -> SetTemplateFile('MyTemplate.tpl') // Smarty template
- $SmartyMailer -> SetCssFile('MyStyles.css') // Css styles
- $SmartyMailer -> Assign('FirstName', 'Ben') // Smarty variable assignments (you can use any Smarty method)
- $SmartyMailer -> Process() -> ShowOutput() // Processes and displays the result
- Sending :
- $SmartyMailer -> SetSender('from@example.com') // Set email's sender
- $SmartyMailer -> SetRecipient('to@example.com') // Set email's recipient
- $SmartyMailer -> SetSubject('Hello {$FirstName}') // Set email's subject (can be a Smarty s
Smarty
发送
设计
电子邮件
相关源码推荐
鲁班锁图纸
0
0
暂无评分
java 多例模式
0
0
暂无评分
java单例模式
0
0
暂无评分
设计模式总结之Observer Pattern——观察者模式
0
0
暂无评分
设计模式——组合模式
0
0
暂无评分
暂无评论