Im having a major email issue here where some lines of code in my symfony app were generating an error email. we are talking 300K plus emails coming to my inbox which were generated since last friday.
i think they are stacked up in a buffer. i would like to simply delete this buffer.
my config.yml uses this for swiftmailer config
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**
I have already changed the subject in the config to recognize if its new emails, or old emails coming down, but i have yet to see a single email with the new subject, so there must be a large queue line in the hundreds of K's somewhere. I looked in app/cache/ but didnt find anything logical in there to inspect.
Im not well versed in swiftmailer, does anybody know anythign abotu the internals, i.e. where the buffers might be stored, or emails queued?