dhelly/notification

这是一个基于composer生成电子邮件通知的库。

v1.0.1 2020-11-04 19:25 UTC

This package is not auto-updated.

Last update: 2024-09-20 12:04:26 UTC


README

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

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

composer require dhelly/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");

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

开发者

许可证

MIT

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