【发布时间】:2020-01-30 08:43:27
【问题描述】:
我已将这些代码放入 .yml 文件,但我仍然没有收到带有错误的电子邮件
SilverStripe\Core\Injector\Injector:
Psr\Log\LoggerInterface:
calls:
MailHandler: [ pushHandler, [ '%$MailHandler' ] ]
MailHandler:
class: Monolog\Handler\NativeMailerHandler
constructor:
- abc@sss.com
- There was an error on your test site
- abc@sss.com
- error
properties:
ContentType: text/html
Formatter: %$SilverStripe\Logging\DetailedErrorFormatter
【问题讨论】:
标签: php error-handling silverstripe-4