rafaeldms / notification
这是一个基于composer生成电子邮件通知的库。
v1.0.0
2019-01-23 13:31 UTC
Requires
- phpmailer/phpmailer: 6.0.1
This package is auto-updated.
Last update: 2024-09-09 02:05:50 UTC
README
此库具有使用phpmailer库发送电子邮件的功能。以简单的方式完成此操作对于任何系统都是必不可少的。
要安装库,请运行以下命令
composer require rafaeldms/notification
要使用库,只需要求composer的自动加载,调用类并执行方法调用
<? php require __DIR__ . '/vendor/autoload.php'; use Notification\Email; $mail = new Email (2, "mail.host.com", "your@email.com", "your-pass", "smtp secure (tls / ssl)", "port (587)", "from@email.com", "From Name"); $email-> sendEmail ("Subject", "Content", "reply@email.com", "Replay Name", "address@email.com", "Address Name");
请注意,发送电子邮件的整个配置都使用魔法方法构建器!一旦在您的应用程序中调用构造方法,您的系统就能开火。
开发者
- Rafael Damasceno Ferreira - 此库的开发者及CAGEP - 开发者 - 公共管理咨询和顾问!
- CAGEP - 公共管理咨询和顾问
- phpMailer - 用于发送电子邮件的库
许可证
....
MIT
** 加一培训课程,充分利用! **