Yii2正在记录我以.eml文件发送的每封邮件,并将其存储到frontend \ runtime \ debug \ mail中。该文件夹变得非常沉重,并占用了我所有的服务器空间。无论如何有阻止它。我正在使用快速邮件程序。
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => *******,
'password' => *****,
'port' => '465',
'encryption' => 'ssl',
],
],
发生这种情况是因为您已打开yii2-debug模块。您需要将其从生产服务器中删除-该服务器仅设计用于非生产环境以进行测试和调试。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句