Send emails via memory in controllers and spool in some commands in Symfony2
问题 I need to use the spool option to send massive emails to my users, but i won't to change whole config of my app to spool because my register system send an email to the user and i want that this email be instant send. Is any way to do this without change the global config for swiftmailer? 回答1: You can configure different emailers. For example: swiftmailer: default_mailer: spool_mailer mailers: spool_mailer: spool: type: file path: /path/to/spool # ... instant_mailer: # ... Then use one