mrbig00/yii2-sendmachine

Sendmachine API 的 Yii2 实现

dev-master 2017-07-14 08:18 UTC

This package is auto-updated.

Last update: 2024-09-22 01:47:44 UTC


README

Sendmachine API 的 Yii2 实现

安装

安装此扩展的首选方法是通过 Composer

运行以下命令之一

php composer require --prefer-dist mrbig00/yii2-sendmachine "*"

或在您的 composer.json 文件的 require 部分添加以下内容

"mrbig00/yii2-sendmachine": "*"

配置

设置您的凭据

'components' => [ 
    
    'sendmachine' => [
        'sendmachine' => [
            'class'    => 'mrbig00\sendmachine\Sendmachine',
            'username' => '__YOUR_USERNAME_FROM_SMTP_PANEL__',
            'password' => '__YOUR_PASSWORD_FROM_SMTP_PANEL__'
        ],
    ]
    
]

用法

\Yii::$app->sendmachine->client

文档:http://developers.sendmachine.com/

基于

https://github.com/Sendmachine