ferreirajonatas/notification

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

v1.0.0 2020-04-11 23:15 UTC

This package is auto-updated.

Last update: 2024-09-22 22:54:30 UTC


README

此库具有使用phpmailer库发送电子邮件的功能。以简单的方式完成此操作对于任何系统都是至关重要的。

要安装库,请运行以下命令

composer require ferreirajonatas/notification

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

<? php

require __DIR__ . '/vendor/autoload.php';

USE Notification\Email;

$newEmail = new Email (2, "mail.host.com", "your@email.com", "your-pass", "smtp secure (tls / ssl)", "port (587)","from@email.com", "From Name");

$newEmail-> sendEmail ("Subject", "Content", "reply@email.com", "Replay Name", "address@email.com", "Address Name");

请注意,发送电子邮件的整个配置都使用魔法方法构建器!一旦在您的应用程序中调用构建器方法,您的系统将能够执行操作。

开发者

许可证

MIT

** 另一个UpInside Treinamentos课程,充分利用它!**