symbiote / silverstripe-sesmail
自定义邮件发送器类型,通过亚马逊的SES发送邮件
4.0.0
2019-10-01 05:50 UTC
Requires
- aws/aws-sdk-php: ~3.0
- silverstripe/framework: ^4
- zendframework/zend-mail: ~2.2
Replaces
README
安装模块后,添加以下类似配置以启用邮件发送器
--- Name: AWSConfig --- SilverStripe\Core\Injector\Injector: SilverStripe\Control\Email\Mailer: class: Symbiote\SilverStripeSESMailer\Mail\SESMailer constructor: config: credentials: key: YourKey secret: YourSecret region: us-west-2 version: '2010-12-01' signature_version: 'v4'
如果您的SES账户配置了单个已验证的“from”地址,您可以为“always from”邮箱地址设置一个始终作为“From:”头部的邮箱地址,其中“reply-to:”头部基于调用代码的“From”变量设置。只需添加
SilverStripe\Core\Injector\Injector:
SilverStripe\Control\Email\Mailer:
properties:
alwaysFrom: [email protected]
如果已安装QueuedJobs模块,则将通过QueuedJobs模块发送邮件。您可以设置以下配置以绕过此行为,即使已安装QueuedJobs
SilverStripe\Core\Injector\Injector:
SilverStripe\Control\Email\Mailer:
calls:
- [ setUseQueuedJobs, [ false ] ]