struktal/struktal-phpmailer-wrapper
最新稳定版本:1.0.0
Composer 安装命令:
composer require struktal/struktal-phpmailer-wrapper
包简介
PHP wrapper library to extract common settings for a PHPMailer object instance
关键字:
README 文档
README
This is a PHP wrapper library to extract common settings for a PHPMailer object instance
Installation
To install this library, include it in your project using Composer:
composer require struktal/struktal-phpmailer-wrapper
Usage
Before you can use this library, you need to customize a few parameters. You can do this in the startup of your application:
\struktal\MailWrapper\MailWrapper::setSetupFunction(function(\struktal\MailWrapper\MailWrapper $mailer) { // Set up the mailer instance here });
Furthermore, you can specify to redirect all mails to a specific address instead of the real recipients for testing purposes:
\struktal\MailWrapper\MailWrapper::setRedirectAllMails( true, "email@domain.com" // The email address to redirect all mails to );
Then, you can instantiate an instance of the MailWrapper class and use it just like a regular PHPMailer object for sending mails.
Dependencies
- PHPMailer - GitHub: PHPMailer/PHPMailer, licensed under LGPL-2.1 license
License
This software is licensed under the LGPL-2.1 license. See the LICENSE file for more information.
统计信息
- 总下载量: 710
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-2.1-only
- 更新时间: 2025-08-20