This course is still being released! Check back later for more chapters.
Mailer y Webhook con Mailtrap
Master sending and tracking stylish emails in Symfony & Mailtrap.
- intermediate
- 412 students
- EN/ES Captions
- EN/ES Script
- Certificate of Completion
Your Guides
About this course
Sí, tarde o temprano tendrás que enviar correos electrónicos desde tu aplicación! Puede que sea un ¡Gracias por registrarte!, ¡Tu pedido está listo!, o incluso un ¡Creemos que eres fabuloso, aquí tienes un descuento! correo electrónico. Sea como sea, con el componente Mailer de Symfony y Mailtrap, enviar correos electrónicos puede ser divertido en desarrollo y sencillo y fiable en producción. En este tutorial, potenciaremos tus correos electrónicos dominando Mailer de Symfony + probando y pasando a producción con Mailtrap:
- Instalación y configuración del Mailer de Symfony.
- Previsualizar fácilmente los correos enviados con el perfilador de Symfony y la herramienta de pruebas de Mailtrap.
- Uso de Twig para añadir HTML a tus correos electrónicos.
- Incluir y alinear estilos CSS en tus correos electrónicos.
- Integrar el framework Foundation CSS con Inky.
- Añadir archivos adjuntos, imágenes incrustadas y establecer una dirección global "de".
- Etiquetas y metadatos para rastrear y organizar tus correos electrónicos.
- Añadir aserciones de correo electrónico a tus pruebas funcionales.
- Envío asíncrono de correos para agilizar las respuestas.
- Configurar la entrega en producción con el puente de Mailtrap.
- Enviar correos desde la línea de comandos.
Y luego... ¡nos sumergiremos en el seguimiento de correos electrónicos y webhooks!
- Configuración de Symfony Webhook para capturar cada apertura, clic y rebote.
- Configurar el enrutamiento, el análisis y el consumidor de eventos de Mailtrap.
- Prueba tu configuración de webhook localmente con Mailtrap y ngrok.
Así que vamos a conseguir que esos correos vuelen, tengan un aspecto estupendo y hagan un seguimiento perfecto.
Next courses in the Symfony 7: Learn More Tricks section of the Symfony 7 Track!
15 Comments


Is this sponsored by Mailtrap? If so, it should be explicitly stated. If not, it would still be helpful to clarify, as it is somewhat ambiguous. I'm curious whether you chose to feature Mailtrap because you think it is the most efficient service for handling mail in development mode with Symfony framework or if there is some form of partnership involved.
Hey @BigBenJr!
You're right, Mailtrap did sponsor this course. This enabled us to make it free and also some contributions to Symfony itself to improve the Webhook component (which benefits everyone). See our blog post on this for more details.
We'll add a note to the course description to make this clear.
Thanks!
Kevin
Hey @BigBenJr!
I'm glad you asked this! We should absolutely disclose partnerships. We'll add it here and in the future. That being said, we only create tutorials (sponsored or not) for tech that we use or would use if we have the use-case). We think Mailtrap is awesome.
Thanks for keeping us honest Ben!


Thanks for the clarification and for the high-quality tutorials (sponsored or not)! You make the learning curve feel effortless.
A good course with a subject that can become quite difficult in terms of compatibility.
But Foundation in 2025 😱
Hey @Ruslan
Nice try =) You know writing some clients is a pretty complex task, and it will not fit in any course. I bet there are libraries and that is not required to do by yourself. However, we register your idea in the backlog =)
Cheers!
I mean not "full" client, may be console command for some tasks like:
- Connect by IMAP
- Check IMAP folder
- Find email by part of header , get sender, connect to specific folder (spam, inbox, ..)
- Delete email or something else.
It's helpful task for mailing - FBL (Feed Back Loops) control email.
BR.
Hey @David-B,
I don't think it will include this. symfony/mailer
is for transactional emails only which don't require an unsubscribe link.


It would be great if you could include how to create dynamic transports aside from the one configured in the configuration. I think this helps with developers who are creating SaaS applications that need to set the transports for the mail service dynamically.
Thank you.
I waiting for something like this course.