gleys / notification
这是一个基于composer生成电子邮件通知的库
v1.0.1
2023-04-26 03:20 UTC
Requires
- phpmailer/phpmailer: 6.8.0
This package is auto-updated.
Last update: 2024-09-26 06:33:30 UTC
README
此库具有使用phpmailer库发送电子邮件的功能。以简单的方式执行此操作对于任何系统都是至关重要的。
要安装库,请运行以下命令
composer require gleys/notification
要使用库,只需请求composer的自动加载,调用类并调用方法
<?php requires __DIR__ . '/vendor/autoload.php'; USE Notification\Email; $email = new Email(2, "mail.host.com", "your@email.com", "your password", "secure smtp (tls/ssl)", "port (587)", "from@email.com", "From name"); $email->sendEmail("SUbject", "Content", "reply@email.com", "Replay Name", "address@email.com", "Address Name");
请注意,发送电子邮件的整个配置都使用魔法构造函数方法!一旦开发者在您的应用程序中调用方法,您的系统将能够训练触发器。
开发者
- Gleyson Dev - 该库的开发者和Composer实用课程的导师!
- [phpMailer] - 发送电子邮件的库
许可证
MIT
另一个UpInside培训课程,充分利用它吧!