Hi there, I hope this Mailing list is appropriate: I don't think this is a user question, but rather a problem that might have to be investigated by a dev. If I end up being wrong, I apologize in advance ;)
I'm using the Swiftmailer to send E-Mail in a Symfony 2.1.4 project. I'm in dev mode and I have disabled actual delivery via disable_delivery: true in config_dev.yml since I just want to see what would end up being sent at this stage. My E-Mail should be sent at the very end of an XMLHTTPRequest. I have a custom notification service in place that collects messages and aggregates them into a single E-Mail at the very end of the HTTP request, so that one single HTTP Request doesn't fire off multiple E-Mails to the same recipient. So I wrote a kernel event listener on "kernel.terminate" that just sends out the collected notifications using the Swiftmailer service. My listener is being called before Symfony's EmailSenderListener::onKernelTerminate, and I made sure my code is actually run. Everything seems fine, no error whatsoever, but when I navigate to the corresponding request in the profiler, it tells me no E-Mail has been sent. If I just change my listener so it listens on "kernel.response" instead of "kernel.terminate", the profiler shows my E-Mail. Looks like an issue doesn't it? The second issue I have, is that, although I have specified "text/html" as content type, the profiler (at least it looks like it's the profiler) escapes the html in my e-mail when displaying it. E.g. "<!DOCTYPE HTML>" instead of "<!DOCTYPE HTML>". Even though the profiler displays a raw E-Mail message, I don't think the html code should be escape should it? Can anyone reproduce this? A little related feature request to end with: it would be cool if the profiler could preview html e-mail ;) Best regards, Mike -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en