accord/mandrill-swiftmailer-bundle

此包已被弃用且不再维护。未建议替代包。

Symfony 扩展,提供 Mandrill SwiftMailer 服务

1.3.1 2018-12-28 09:12 UTC

This package is auto-updated.

Last update: 2023-01-15 19:28:45 UTC


README

Build Status SensioLabsInsight

一个基于 Mandrill API 的 Mandrill 传输实现的 Symfony 扩展

需求

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

安装

使用 composer 需求此包

composer require accord/mandrill-swiftmailer-bundle

将 AccordMandrillSwiftMailerBundle 添加到应用程序内核

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Accord\MandrillSwiftMailerBundle\AccordMandrillSwiftMailerBundle(),
        // ...
    );
}

将您的 API 密钥添加到 config.yml

// app/config/config.yml
accord_mandrill_swift_mailer:
    api_key: MANDRILL_API_KEY
    async: false # optional
    subaccount: ~ # default null

配置 Swiftmailer 以使用此新传输

// app/config/config.yml
swiftmailer:
    transport: accord_mandrill