yurineves / notification
这是一个使用composer作为生成电子邮件通知基础的库
v1.0.1
2020-11-26 04:10 UTC
Requires
- phpmailer/phpmailer: ^6.2
This package is auto-updated.
Last update: 2024-09-24 07:31:05 UTC
README
这个库具有使用phpmailer库发送电子邮件的功能。以简单的方式完成此操作对于任何系统都至关重要。
要安装此库,请运行以下命令
composer require yurineves92/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");
请注意,整个发送电子邮件的配置都是使用魔法方法构建器!一旦你在你的应用程序中调用了构造函数方法,你的系统就能开火。