<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control-symfony-blog--jwgo1txj0" -->

---
title: New in Symfony 8.2: Provider-Hosted Email Templates and...
description: Symfony 8.2 introduces a RemoteTemplateEmail class that lets developers reference provider-hosted email templates (from Brevo, Mailgun, Mailjet, Amazon SES,...
canonical: https://daily.dev/posts/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control-symfony-blog--jwgo1txj0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: New in Symfony 8.2: Provider-Hosted Email Templates and Tracking Control (Symfony Blog) | daily.dev
og:description: Symfony 8.2 introduces a RemoteTemplateEmail class that lets developers reference provider-hosted email templates (from Brevo, Mailgun, Mailjet, Amazon SES,...
og:url: https://daily.dev/posts/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control-symfony-blog--jwgo1txj0
og:image: https://api.daily.dev/og/posts/jwGO1txJ0.png
og:image:alt: New in Symfony 8.2: Provider-Hosted Email Templates and Tracking Control (Symfony Blog)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# New in Symfony 8.2: Provider-Hosted Email Templates and Tracking Control (Symfony Blog)

**[Symfony](https://daily.dev/sources/symfony)** · 3 min read · 1 upvotes · 0 comments

## Summary

Symfony 8.2 introduces a RemoteTemplateEmail class that lets developers reference provider-hosted email templates (from Brevo, Mailgun, Mailjet, Amazon SES, and others) instead of maintaining Twig templates in the application, letting non-technical teams edit email content directly in the provider account. The release also adds a TrackingHeader to override open/click tracking consent on a per-email basis, plus a global 'tracking' config option to disable tracking by default, giving finer control over privacy compliance across supported mail providers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://symfony.com/blog/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control>

## Questions this post answers

### How do I use a provider-hosted email template with Symfony Mailer in Symfony 8.2?

Symfony 8.2 adds a RemoteTemplateEmail class that lets you reference a template stored in your email provider account instead of building the email body yourself. You call template() with a template reference (ID, UUID, name, or alias) and variables, then send it through the mailer. It works with Amazon SES, Brevo, MailerSend, Mailgun, Mailjet, Mailtrap, Mandrill, Postmark, Resend, and SendGrid API transports.

_Track Symfony Mailer changes like this one on daily.dev before they hit a production email pipeline._

### How can I disable email open and click tracking for a single message in Symfony without changing the provider-wide setting?

Symfony 8.2 adds a TrackingHeader class that you add to an individual Email object's headers, passing consent booleans (or null to defer to the provider default) for open and click tracking. It overrides the provider's global tracking setting per message and is supported by AhaSend, Azure, Brevo, Infobip, Mailchimp, MailerSend, Mailgun, Mailjet, Postmark, and SendGrid.

_Developers handling consent-based tracking can follow Symfony Mailer updates like this on daily.dev._

### Why would I use a provider-hosted email template instead of a Twig template stored in my Symfony app?

Provider-hosted templates let non-technical people, such as marketing or support staff, edit email content and design directly in the provider's drag-and-drop builder without needing a developer to update Twig templates in the codebase. Before Symfony 8.2, this required provider-specific headers like templateid in Brevo or X-MJ-TemplateID in Mailjet, with no common abstraction across providers.

_Teams weighing template ownership between developers and marketing can follow this Symfony Mailer approach on daily.dev._

## Similar posts on daily.dev

- [New in Symfony 8.2: Safer HTML in Translations \(Symfony Blog\)](https://daily.dev/posts/new-in-symfony-8-2-safer-html-in-translations-symfony-blog--m6qd8vvrg) · Symfony · 3 upvotes · 0 comments
- [New in Symfony 8.2: Performance Improvements \(Symfony Blog\)](https://daily.dev/posts/new-in-symfony-8-2-performance-improvements-symfony-blog--ef0ps6tns) · Symfony · 4 upvotes · 0 comments
- [Symfony 8.2.0-BETA1 released \(Symfony Blog\)](https://daily.dev/posts/symfony-8-2-0-beta1-released-symfony-blog--roydkcok1) · Symfony · 0 upvotes · 0 comments
- [New in Symfony 8.2: Targeted Cache-Control and Cache-Status Headers \(Symfony Blog\)](https://daily.dev/posts/new-in-symfony-8-2-targeted-cache-control-and-cache-status-headers-symfony-blog--omjexkifi) · Symfony · 1 upvotes · 0 comments
- [New in Symfony 8.2: HTTP Trailers \(Symfony Blog\)](https://daily.dev/posts/new-in-symfony-8-2-http-trailers-symfony-blog--kzzljmocq) · Symfony · 0 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#privacy](https://daily.dev/tags/privacy), [#symfony](https://daily.dev/tags/symfony)

[View this post on daily.dev](https://daily.dev/posts/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control-symfony-blog--jwgo1txj0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"New in Symfony 8.2: Provider-Hosted Email Templates and Tracking Control (Symfony Blog)","url":"https://daily.dev/posts/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control-symfony-blog--jwgo1txj0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control-symfony-blog--jwgo1txj0"},"datePublished":"2026-09-24T11:05:05.120Z","dateModified":"2026-09-24T11:05:28.966Z","description":"Symfony 8.2 introduces a RemoteTemplateEmail class that lets developers reference provider-hosted email templates (from Brevo, Mailgun, Mailjet, Amazon SES,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/327b244859fddae8f3a20d0225898aa0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/327b244859fddae8f3a20d0225898aa0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Symfony","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Symfony","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cc07051b7112472f9729e73c14660a64","url":"https://daily.dev/sources/symfony"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control-symfony-blog--jwgo1txj0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"php,privacy,symfony","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Symfony","item":"https://daily.dev/sources/symfony"},{"@type":"ListItem","position":3,"name":"New in Symfony 8.2: Provider-Hosted Email Templates and Tracking Control (Symfony Blog)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/new-in-symfony-8-2-provider-hosted-email-templates-and-tracking-control-symfony-blog--jwgo1txj0#faq","mainEntity":[{"@type":"Question","name":"How do I use a provider-hosted email template with Symfony Mailer in Symfony 8.2?","acceptedAnswer":{"@type":"Answer","text":"Symfony 8.2 adds a RemoteTemplateEmail class that lets you reference a template stored in your email provider account instead of building the email body yourself. You call template() with a template reference (ID, UUID, name, or alias) and variables, then send it through the mailer. It works with Amazon SES, Brevo, MailerSend, Mailgun, Mailjet, Mailtrap, Mandrill, Postmark, Resend, and SendGrid API transports. Track Symfony Mailer changes like this one on daily.dev before they hit a production email pipeline."}},{"@type":"Question","name":"How can I disable email open and click tracking for a single message in Symfony without changing the provider-wide setting?","acceptedAnswer":{"@type":"Answer","text":"Symfony 8.2 adds a TrackingHeader class that you add to an individual Email object's headers, passing consent booleans (or null to defer to the provider default) for open and click tracking. It overrides the provider's global tracking setting per message and is supported by AhaSend, Azure, Brevo, Infobip, Mailchimp, MailerSend, Mailgun, Mailjet, Postmark, and SendGrid. Developers handling consent-based tracking can follow Symfony Mailer updates like this on daily.dev."}},{"@type":"Question","name":"Why would I use a provider-hosted email template instead of a Twig template stored in my Symfony app?","acceptedAnswer":{"@type":"Answer","text":"Provider-hosted templates let non-technical people, such as marketing or support staff, edit email content and design directly in the provider's drag-and-drop builder without needing a developer to update Twig templates in the codebase. Before Symfony 8.2, this required provider-specific headers like templateid in Brevo or X-MJ-TemplateID in Mailjet, with no common abstraction across providers. Teams weighing template ownership between developers and marketing can follow this Symfony Mailer approach on daily.dev."}}]}
```

