jaribeiro32 / notification
这是一个使用 composer 作为基础来生成电子邮件通知的库
v1.0.0
2020-04-30 08:24 UTC
Requires
- phpmailer/phpmailer: ~6.1
This package is auto-updated.
Last update: 2024-09-22 22:36:42 UTC
README
这个库具有使用 phpmailer 库发送电子邮件的功能。以简单的方式执行此操作对任何系统都是至关重要的。
要安装库,请运行以下命令
composer require jaribeiro/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");
请注意,整个发送电子邮件的配置都是使用魔法方法构建器完成的!一旦你在你的应用程序中调用了构造函数方法,你的系统就能发射子弹。
开发者
- [Jhonny Ribeiro] - 学习 PHP Composer
许可证
MIT