hellem/notification

这是一个使用composer作为基础生成电子邮件通知的库

v1.0.1 2019-10-26 23:55 UTC

This package is not auto-updated.

Last update: 2024-09-23 13:20:47 UTC


README

此库具有使用phpmailer库发送电子邮件的功能。进行此简单操作对任何系统都是必要的。

要安装库,运行以下命令

composer require gustavoweb/composer_test

要使用库,只需require composer自动加载,调用类,并调用方法

<? php

require __DIR__. '/lib_ext/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");

请注意,所有电子邮件发送设置都使用魔法构建方法!一旦你在应用程序中调用构建方法,你的系统就能执行触发器。

开发者

许可证

MIT

** 另一个UpInside培训课程,充分利用!**