【发布时间】:2014-11-20 22:28:39
【问题描述】:
我在这里遇到了一个严重的电子邮件问题,我的 symfony 应用程序中的一些代码行生成了一封错误电子邮件。我们正在谈论自上周五以来生成的 300K 多封电子邮件进入我的收件箱。
我认为它们堆积在缓冲区中。我想简单地删除这个缓冲区。
我的 config.yml 将它用于 swiftmailer 配置
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: grouped
grouped:
type: group
members: [streamed, buffered]
streamed:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
buffered:
type: buffer
handler: swift
swift:
type: swift_mailer
from_email: fromemail@site.com
to_email: me@site.com
subject: "An Error Occurred!"
#DEBUG, "DEBUG", "INFO", "WARNING", "ERROR", DEBUG will log everything, INFO will log everything except DEBUG, etc.
level: debug
login:
type: stream
path: "%kernel.logs_dir%/auth.log"
level: info
channels: security
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
encryption: "%mailer_encryption%"
port: "%mailer_port%"
username: "%mailer_user%"
password: "%mailer_password%"
auth_mode: "%mailer_auth_mode%"
logging: true**strong text**
我已经在配置中更改了主题以识别是新电子邮件还是旧电子邮件下降,但我还没有看到一封带有新主题的电子邮件,因此必须有数百个大队列K的某处。我查看了 app/cache/ 但没有找到任何符合逻辑的东西来检查。
我不精通 swiftmailer,有没有人知道内部结构,即缓冲区可能存储在哪里,或者电子邮件在哪里排队?
【问题讨论】:
-
请有人从历史记录中删除敏感编辑。
标签: symfony swiftmailer