Karmo
Karmo

Reputation: 393

Symfony (2.8): what is a spooled email and why the email is not sended?

Firts, sorry about my english :(

I need help about spooled emails. My App send an email, but I don't recived it. The debug talks about a "spooled" email. What is it? It's the problem?.

enter image description here

Upvotes: 0

Views: 864

Answers (1)

Generwp
Generwp

Reputation: 514

From the official documentation:

The default behavior of the Symfony mailer is to send the email messages immediately. You may, however, want to avoid the performance hit of the communication to the email server, which could cause the user to wait for the next page to load while the email is sending. This can be avoided by choosing to "spool" the emails instead of sending them directly.

This makes the mailer to not attempt to send the email message but instead save it somewhere such as a file. Another process can then read from the spool and take care of sending the emails in the spool. Currently only spooling to file or memory is supported.

You can read more about it, especially how to configure spool, here

Upvotes: 2

Related Questions