hometogo/mandrill-bundle

此包已被废弃且不再维护。未建议替代包。
关于此包最新版本(dev-master)的许可信息不可用。

Swiftmailer-Mandrill 集成用于 Symfony2

安装数: 3,672

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 29

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master 2016-11-22 09:33 UTC

This package is not auto-updated.

Last update: 2018-05-05 13:22:49 UTC


README

此Bundle用于在使用Swiftmailer的同时发送邮件通过Mandrill。

安装

  • 在终端中运行以下命令

    composer require hometogo/mandrill-bundle
    
  • 在您的 AppKernel.php 文件中注册此Bundle

    <?php
    
    // in AppKernel::registerBundles()
    $bundles = array(
        // ...
        new Htg\MandrillBundle\HtgMandrillBundle(),
    );
  • 将您的API密钥添加到 app/config/parameters.yml.dist

    mandrill_key: ~ 
  • 配置Bundle使用您的密钥 app/config/config.yml

    mandrill:
        api_key: %mandrill_key%
  • app/config/config.yml 中注册mandrill传输

    swiftmailer:
        default_mailer: mandrill # optional
        mailers:
            mandrill:
                transport: mandrill
  • mandrill_key: ~ 添加到 paramters.yml 并通过以下命令确保容器完整性

    composer install