naamaslima / notification
这是一个使用composer生成邮件通知的库
v1.0.0
2018-03-11 05:14 UTC
Requires
- phpmailer/phpmailer: 6.0.3
- symfony/var-dumper: ^4.0.4
This package is not auto-updated.
Last update: 2024-09-24 16:07:59 UTC
README
这个库的功能是使用phpmailer库发送电子邮件。以这种方式简化操作对于任何系统来说都是至关重要的。
要安装这个库,请执行以下命令
composer require naamaslima/notification
要使用这个库,只需要求composer的autoload,调用类并调用方法
<?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("address_to@email.com", "reply_to@email.com", "Replay Name", "Subject", "Body");
请注意,所有的电子邮件发送配置都使用了魔术构造函数!一旦在您的应用程序中调用了构造函数,您的系统就准备好执行发送。
开发者
- Naamã Lima - 这个库的开发者!
- phpMailer - 发送电子邮件的库
许可证
MIT
这是UpInside培训课程的一部分,请好好利用!