araujolops / ensistmailer
这是一个基于composer生成电子邮件通知的库
dev-master
2022-06-03 21:36 UTC
Requires
- phpmailer/phpmailer: 6.5.0
This package is not auto-updated.
Last update: 2024-10-02 18:02:20 UTC
README
此库具有使用phpmailer库发送电子邮件的功能。以简单的方式进行此操作对于任何系统都是至关重要的。
要安装库,请运行以下命令
composer require araujolops/example
要使用库,只需要求composer的自动加载,调用类并调用方法
<? php require __DIR__ . '/vendor/autoload.php'; USE Notification\Email; $mail = 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");
请注意,整个电子邮件发送的配置都使用魔法方法构建器!一旦在您的应用程序中调用构造函数方法,您的系统就能够开火。
开发者
- Alexandre - Ensist Sistemas e Informática的开发商!
- Ensist Sistemas - 公司的官方网站。特定系统的开发。
- phpMailer - 发送电子邮件的库
许可证
MIT
** 基本电子邮件发送库。请随意改进它。 **