rodrigofrancon / notification
这是一个基于composer生成邮件通知的库
v1.0.1
2020-08-06 19:31 UTC
Requires
- phpmailer/phpmailer: 6.1.7
This package is not auto-updated.
Last update: 2024-09-28 10:20:27 UTC
README
#使用phpMail的邮件通知库
这个库具有使用phpmailer库发送电子邮件的功能。以简单的方式执行此操作对于任何系统都是至关重要的。
要安装库,运行以下命令
composer require rodrigofrancon / composer_teste
要使用库,只需要求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");
请注意,整个发送电子邮件的配置都使用魔法方法构建器!一旦在您的应用程序中调用构建器方法,您的系统将能够进行操作。
开发者
- phpMailer - 发送电子邮件的库
许可证
MIT