Symfony Mailer. Una nueva forma de enviar emails

Introducción al componente Mailer, candidato a sustituir Swiftmailer desde Symfony 4.3

Image for post
Image for post
Photo by Carol Jeng on Unsplash

Limitaciones de Swiftmailer

Image for post
Image for post
\Swift_Message

Symfony Mailer

Image for post
Image for post
From https://www.youtube.com/watch?v=bTKsWMAybWA&t=517s
new GmailTransport('user', 'password');

Integración con Twig

Image for post
Image for post
Twig + SwiftMailer
Image for post
Image for post
TemplatedEmail
Image for post
Image for post
Twig Template for TemplatedEmail
Image for post
Image for post
TemplatedEmail with context
Image for post
Image for post
Using context inside template

Plantillas predefinidas

Image for post
Image for post
Image for post
Image for post
Themed email
Image for post
Image for post
Slide from talk: https://www.youtube.com/watch?v=bTKsWMAybWA&t=517s

Creando nuestras propias clases

Image for post
Image for post
Image for post
Image for post

Integración con Messenger

Image for post
Image for post

Conclusiones

¿Quieres recibir más artículos como este?

Entre paseo y paseo con Simba desarrollo en Symfony y React

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store