remiii / mandrill-mailer-bundle

MandrillMailerBundle 在 Swiftmailer 上添加了对 Mandrill API 的支持

v0.0.4 2015-03-09 16:26 UTC

This package is not auto-updated.

Last update: 2024-09-14 15:32:23 UTC


README

MandrillMailerBundle 添加了对 Mandrill API 的 Swiftmailer 支持。

                            _      _ _ _              _ _
      /\/\   __ _ _ __   __| |_ __(_) | | /\/\   __ _(_) | ___ _ __
     /    \ / _` | '_ \ / _` | '__| | | |/    \ / _` | | |/ _ \ '__|
    / /\/\ \ (_| | | | | (_| | |  | | | / /\/\ \ (_| | | |  __/ |
    \/    \/\__,_|_| |_|\__,_|_|  |_|_|_\/    \/\__,_|_|_|\___|_|

功能包括

  • ...

注意:此包正在开发中,不提供任何保证。

Total Stars

Build Status

Coverage Status

SensioLabsInsight

要求

Mandrill API 密钥 - https://mandrillapp.com/

安装

步骤 1:使用 composer 下载 MandrillMailerBundle

运行以下命令添加 MandrillMailerBundle

$ php composer.phar require remiii/mandrill-mailer-bundle

Composer 将将包安装到项目的 vendor 目录。

步骤 2:启用包

在内核中启用包

<?php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new remiii\MandrillMailerBundle\remiiiMandrillMailerBundle(),
    );
}

步骤 3:配置 config.yml

// app/config/config.yml

#...

# MandrillMailer
remiii_mandrill_mailer:
    api_key: YOUR_MANDRILL_API_KEY
    async: false

步骤 4:配置 param.yml

// app/config/parameters.yml

parameters:
    #...
    mailer_transport: remiii_mandrill_mailer

版本

Latest Stable Version

许可协议

此包采用 MIT 许可协议。请参阅 LICENSE.md 中的完整许可协议。

License

作者

  • Rémi Barbe(又名 Remiii)

错误报告和帮助

对于错误报告,请创建一个 Github 事务。欢迎接受补丁。:-)