Symfony Mailer: Love Sending Emails Again
Become a pro at sending app emails, using Symfony's Mailer. Learn debugging, email attachments and production cloud delivery setup!
- 3750 students
- EN Captions
- EN Script
- Certificate of Completion
Your Guides
About this course
Yep! No matter how hard you try, eventually you will need to send emails from your app! Whether it's a "registration" email, "order completed" email or a "Hey, we think you're great & want to give you a free ?" email, setting this up doesn't need to be a pain! With Symfony's Mailer component & cloud email delivery services... I dare say, you're going to love sending emails.
In this tutorial, we'll give your emails something to brag about by mastering Symfony's Mailer:
- Installing & configuring the mailer transport
- Sending that first email and configuring the heck out of it!
- Debugging emails while developing? Hello Mailtrap, MailHog & Mailcatcher!
- HTML emails with Twig
- Automatic text emails
- Linking to images from within an email vs embedded images
- Styling with CSS with automatic CSS inlining
- Integrating the Foundation CSS framework for emails: Inky!
- Leveraging event listeners to globally customize from, senders, etc
- Sending emails from a command (and fixing link URLs)
- Email attachments
- Sending emails from inside of tests (the null transport)
- Async email sending with Messenger
- Failover & round robin transports
- Production cloud delivery setup with SendGrid
- DNS "deliverability" goodies - SPF, DKIM & DMARC!
So... let's send some emails, make them look great and love the process.
Next courses in the Symfony 5: Learn More Tricks section of the Symfony 5 Track!
10 Comments
Hey Miky!
Hmm. Let me make sure I understand correctly :). Do you need a place where you can send and receive emails to customers? If so, we use Helpscout for this. It is not integrated specifically inside our Symfony app in any significant way, but we love it. Our codebase sends emails from hello@symfonycasts.com
. If anyone replies to any email, we have Helpscout configured so that the messages appear in Helpscout. Then, our entire team can read & reply to those messages. I'm not sure if this is what you're looking for - but let me know. If you ARE looking for a system like this, I would highly recommend using a service like Helpscout vs trying to implement something custom in your Symfony app, because services like Helpscout are so feature-rich (it's all they do!).
Cheers!
Hi, we looked on it... and its great.. but the request is small internal local stored emails loaded from mailbox and saved into database to do whatever we want with them... We are looking now on https://github.com/knyk/mai... but i was not sure if exist mailer if exist some "official" version of something which support also receiving of emails, not only sending... Thank you for your answer :)
Hey Miky!
Ah, nice find! Yes, unfortunately, you are not "missing" some cool official feature for this - you would need to build it yourself or use some bundle :).
Good luck!
Hi, thanks for the hard work, every time you finish a course, i say now they will release symfony translation but still nothing about it, do you still working on it or canceled?
thank you.
Hey Adam!
Thank you for your interest in Translations tutorial! We're sorry about the delay, but we're going to release it, it's NOT canceled. It was just postpone, first of all because some new upcoming version of Symfony should have a lot of good improvements that we would like to cover in this screencast, and also the 2nd reason is that we wanted to cover translations in full, like from translating things in your templates and up to translating content in the DB - it seems to be a big tutorial, or even probably a few smaller courses in Translation series. So, it was just postponed, for now we're working on a few new things like Mailer and Blackfire... and maybe one more JS tutorial. And since there's Symfony 5 upcoming pretty soon, so we're not sure if we should wait a bit more and cover this translations tutorial on Symfony 5 or release it faster but on Symfony 4. In any case it would depend on our availability, there're a lot of interesting screencasts are coming soon on SymfonyCasts. But we're interested in your opinion. What would you prefer? Cover translations on Symfony 4 faster or wait for Symfony 5 and cover it on the latest version?
Thank you for your patience!
Cheers!
Hello, How much i need to wait until the next videos will Come ??? please finish it
Hey Moktar,
This course is just in the middle of releasing. We're still working on recording audio and video parts of it and then mix them together. We're trying to release a new video every day, you can see it on our Course Updates page: https://symfonycasts.com/up...
We're sorry for any inconvenience it may cause for you, but believe us, we do our best on it. And that's our policy about releasing new videos, we do want to deliver the content quicker for our customers, that's why we decided to release our videos step by step when they are ready instead of letting people wait until the complete course is ready and publish the entire course at once. This let us an ability to publish first videos of the course faster even when we're still working on the end of this course.
I hope this makes sense for you and thank you for your patience!
Cheers!
Hey Bartlomeij!
This is coming tomorrow (Monday). And... it's super fun :).
Cheers!
Hi, i want ask that everywhere is all about sending emails... What is great.. i used many tips from your tutorial... But is some place where i can create inbox and manage it for users??? Mean if you can suggest something for beginner for basic easy integration, that i will not only available sent email but receive and store/manage them in inbox in symfony.