accord / postmark-swiftmailer-bundle
此软件包已被废弃,不再维护。没有建议的替代软件包。
一个提供Postmark传输实现的SwiftMailer的Symfony2软件包
dev-master / 1.0.x-dev
2017-06-07 13:50 UTC
Requires
- php: >=5.3.3
- openbuildings/postmark: >=0.3.1
- swiftmailer/swiftmailer: >=5.2.1,<6.0.0
- symfony/framework-bundle: >=2.3
This package is auto-updated.
Last update: 2023-01-15 19:28:49 UTC
README
一个提供Postmark传输实现的SwiftMailer的Symfony2软件包
安装
将软件包添加到composer.json
"require": {
"php": ">=5.3.2",
"symfony/symfony": "~2.1",
"_comment": "your other packages",
"accord/postmark-swiftmailer-bundle": "dev-master",
}
将AccordPostmarkSwiftMailerBundle添加到应用程序内核
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Accord\PostmarkSwiftMailerBundle\AccordPostmarkSwiftMailerBundle(),
// ...
);
}
将您的API密钥添加到app/config/config.yml
accord_postmark_swift_mailer:
api_key: POSTMARK_API_KEY
use_ssl: true # Optional, true by default
在app/config/config.yml中配置Swiftmailer以使用此新传输
swiftmailer:
transport: accord_postmark