thiagoimparato / notification
这是一个用户以 composer 为基础生成电子邮件通知的库
v1.0.0
2021-05-06 12:49 UTC
Requires
- phpmailer/phpmailer: 6.4.1
This package is not auto-updated.
Last update: 2024-09-21 03:19:50 UTC
README
此库具有使用 phpmailer 库发送电子邮件的功能。以简单的方式执行此操作对于任何系统都至关重要。
要安装此库,请运行以下命令
composer require thiagoimparato/notification
要使用此库,只需使用 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");
请注意,发送电子邮件的整个配置都使用魔法方法构建器!一旦在您的应用程序中调用构建器方法,您的系统将能够承担这些任务。
开发者
- [Thiago de Souza Imparato] - 此库的开发者
- [phpMailer] - 用于发送电子邮件的库
许可证
MIT