定制 koldy/phpmailer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

koldy/phpmailer

最新稳定版本:0.2.0

Composer 安装命令:

composer require koldy/phpmailer

包简介

An extension to Koldy Framework that brings integration for PHPMailer

README 文档

README

Use this package to integrate PHPMailer with your project built on top of Koldy Framework. Minimum PHP version is PHP 8.1. This package is using PHPMailer to send emails via SMTP only.

Installation

composer require koldy/phpmailer

Configuration

In your project's config folder (usually configs/mail.php), add the following block:

'phpmailer' => [
    'enabled' => true,
    'adapter_class' => \KoldyPHPMailer\PHPMailer::class,
    'options' => [
        'host' => 'your.domain.com', // required
        'port' => 465, // required
        'username' => 'your.username', // optional
        'password' => 'your.password', // optional
        'from' => 'no-reply@your.domain.com', // optional
        'fromName' => 'Your Name', // optional
        'adjust' => function ($phpmailer) { // optional
            // you can adjust the PHPMailer's instance here, for example:
            $phpmailer->SMTPDebug = \PHPMailer\PHPMailer\SMTP::DEBUG_SERVER;
        }
    ]
]

Licence

Open sourced and published under MIT licence.

统计信息

  • 总下载量: 165
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-25