flowcode/notificationbundle

这是为 symfony 通知的捆绑包

安装次数: 1,413

依赖者: 1

建议者: 0

安全: 0

星级: 0

关注者: 5

分支: 0

开放问题: 0

类型:symfony-bundle

v1.0.0 2017-07-10 21:03 UTC

This package is not auto-updated.

Last update: 2024-09-14 17:43:01 UTC


README

这是为 symfony 通知的捆绑包

要使用 Mandrill,我们使用 Slot/MandrillBundle。

ref: https://github.com/slot/MandrillBundle 添加此内容

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Slot\MandrillBundle\SlotMandrillBundle(),
    );
}

到您的 config.yml 配置文件

slot_mandrill:
    api_key: "%mandrill_api_key%"
    disable_delivery: true # useful for dev/test environment. Default value is 'false'
    # debug: passed to \Mandrill causing it to output curl requests. Useful to see output
    # from CLI script. Default value is 'false'
    debug: true
    default:
        sender: info@example.com
        sender_name: "%mandrill_api_key%" # Optionally define a sender name (from name)
        subaccount: Project # Optionally define a subaccount to use
    proxy:
        use: true # when you are behing a proxy. Default value is 'false'
        host: example.com
        port: 80
        user: john
        password: doe123