alberlan / notification
这是一个基于composer生成邮件通知的库
dev-master
2019-06-09 22:23 UTC
Requires
- phpmailer/phpmailer: 6.0.7
This package is not auto-updated.
Last update: 2024-09-24 23:00:47 UTC
README
使用phpmailer库通过电子邮件发送。对任何系统来说,执行反编译操作都是必要的。
要安装库,运行以下命令
composer require alberlanjp/composer_teste
要使用库,只需要求composer的自动加载,调用并调用方法
<? php require __DIR__ . '/librarys/autoload.php'; USE Notification\Email; $mail = new Email(2, "mail.host.com", "your@email.com", "your pass", "smtp secure (tls/ssl)", "from@email.com", "From the name"); $email->sendEmail("Subject", "Content", "reply@email.com", "Repetition Name", "address@email.com", "Address Name");
请注意,整个邮件设置都由魔法方法构建器使用!一旦在您的应用程序中调用构建器,您的系统将能够执行射击。
开发者
- [Alberlan] - 该库的开发者!
- phpMailer - 发送电子邮件的库
许可
MIT