mastercode/emailsender

此应用程序(类)用于发送phpmailer库中使用的电子邮件。

3.0.0 2023-08-25 18:59 UTC

This package is auto-updated.

Last update: 2024-09-25 23:45:12 UTC


README

通过PHPMailer类使用电子邮件的通知库

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

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

composer require mastercode/emailsender

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

<?php

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

USE MasterCode\Email\Email;

$mail = new Email("smtps.domain.com", "sender@domain.com", "12345678", "sender@domain.com", "My Name");

$mail->sendEmail("receiver@domain.com", "Receiver Name", "Contact By Site", "Here is the formulary message by your site.", "client@email.com", "Client Name");

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

开发者

  • [Lucas A. R. Volpati] | lucas.volpati@outlook.com - 此库的开发者和《Composer实践课程》的导师!
  • [phpMailer] - 发送电子邮件的库

许可证

MIT - 好好利用。