Swift Mailer不依赖于 PHP 自带的mail() 函数,因为该函数在发送多个邮件时占用的系统资源很高。Swift 直接与 SMTP 服务器通讯,具有非常高的发送速度和效率。
Swiftmailer的特点:文章源自陈学虎-https://chenxuehu.com/article/2016/03/5018.html
- Send emails using SMTP, sendmail, postfix or a custom Transport implementation of your own
- Support servers that require username & password and/or encryption
- Protect from header injection attacks without stripping request data content
- Send MIME compliant HTML/multipart emails
- Use event-driven plugins to customize the library
- Handle large attachments and inline/embedded images with low memory use
文章源自陈学虎-https://chenxuehu.com/article/2016/03/5018.html
官方网址:http://swiftmailer.org/文章源自陈学虎-https://chenxuehu.com/article/2016/03/5018.html
文章源自陈学虎-https://chenxuehu.com/article/2016/03/5018.html
今晚还只是初略的在ThinkPHP上应用了,效率还是很不错的,很简单的就能实现,同时发送多封邮件,多个附件,今天使用甚少,后续做补充介绍。文章源自陈学虎-https://chenxuehu.com/article/2016/03/5018.html 文章源自陈学虎-https://chenxuehu.com/article/2016/03/5018.html
评论