matheusmarzochi / notification
这是一个使用composer作为生成邮件通知的基础的库
v1.0.1
2020-04-03 01:23 UTC
Requires
- phpmailer/phpmailer: 6.0.1
This package is not auto-updated.
Last update: 2024-09-29 05:29:45 UTC
README
这个库有使用phpmailer库发送电子邮件的功能。以简单的方式完成此操作对于任何系统都是至关重要的。
要安装此库,运行以下命令
composer require matheusmarzochi/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");
请注意,整个发送电子邮件的配置都使用魔术方法构建器!一旦在你的应用程序中调用了构建器方法,你的系统就能够采取行动。
开发者
- Matheus Marzochi - 全栈开发者
- [phpMailer] - 发送电子邮件的库
许可证
MIT
** 另一个UpInside培训课程,好好利用它! **