ribeiro_jr / notification
这是一个以 composer 为基础的生成电子邮件通知的库
v1.0.1
2020-04-18 12:23 UTC
Requires
- phpmailer/phpmailer: 6.1.5
This package is auto-updated.
Last update: 2024-09-22 23:09:35 UTC
README
此库具有使用phpmailer库发送电子邮件的功能。以简单的方式进行此操作对任何系统都是必不可少的。
要安装库,请运行以下命令
composer require ribeiro-jr / notification
要使用库,只需使用 composer 自动加载,调用类并调用方法
<? php require __DIR__. '/vendor/autoload.php'; USE Notification \ Email; $ email = 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");
请注意,发送电子邮件的整个配置都是使用魔法方法构建器!一旦在您的应用程序中调用了构建器方法,您的系统将能够采取行动。
开发者
- Gustavo Web - 本课程教师和开发者!
- Vanilson Z. Ribeiro - 本库开发者
- phpMailer - 发送电子邮件的库
许可证
MIT
** 另一个 UpInside 培训课程,好好利用它!**