Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

SymfonyCasts

Mailer and Webhook with Mailtrap

via SymfonyCasts

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it

Note

This course is free thanks to a sponsorship by Mailtrap. See our blog post for more details on our partnership.

Yes, sooner or later, you'll need to send emails from your app! Maybe it's a Thanks for signing up! email, Your order is ready! email, or even a We think you're fabulous, here's a discount! email. Whatever the case, with Symfony's Mailer component and Mailtrap, sending emails can be both fun in development and simple & reliable on production. In this tutorial, we'll supercharge your emails by mastering Symfony's Mailer + testing and going to production with Mailtrap:

  • Installing & configuring Symfony Mailer.
  • Previewing sent emails easily with the Symfony profiler and Mailtrap's Test Tool.
  • Using Twig to add HTML to your emails.
  • Including and inlining CSS styles in your emails.
  • Integrating the Foundation CSS framework with Inky.
  • Adding attachments, embedded images, and setting a global "from" address.
  • Tags and metadata for tracking and organizing your emails.
  • Adding email assertions to your functional tests.
  • Async email sending to keep responses speedy.
  • Setting up production delivery with Mailtrap's bridge.
  • Send emails from the command line.

And then... we'll dive into email tracking and webhooks!

  • Configuring Symfony Webhook to capture every open, click, and bounce.
  • Setting up Mailtrap's routing, parsing, and event consumer.
  • Testing your webhook setup locally with Mailtrap and ngrok.

So, let's get those emails flying, looking great, and tracking like a charm.

Syllabus

  • Installing the Mailer
  • Sending our First Email
  • Better Email
  • Previewing Emails with Mailtrap (Email Testing)
  • HTML-powered Emails
  • CSS in Email
  • Real Email Styling with Inky & Foundation CSS
  • Attachments and Images
  • Global From (and Fun) with Email Events
  • Production Sending with Mailtrap
  • Email Tracking with Tags and Metadata
  • Async & Retryable Sending with Messenger
  • Generating URLs in the CLI Environment
  • Emails Assertions in Functional Tests
  • Email Twig Layout
  • Email from CLI Command
  • Test for CLI Command
  • Email Factory Service
  • The Webhook Component for Email Events
  • Demoing our Webhook via a Wormhole
  • Bonus: Scheduling our Email Command
  • Bonus: Messenger Monitor Bundle

Taught by

Kevin Bond

Reviews

Start your review of Mailer and Webhook with Mailtrap

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.