silverstripe-australia / silverstripe-sesmail
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账户使用一个经过验证的单一“发件人”地址配置,你可以设置一个“始终发件人”电子邮件地址,它将始终作为“发件人:”标题,而“回复到:”标题将基于调用代码的“发件人”变量设置。只需添加
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 ] ]