Skip to content

symfony/brevo-mailer

Repository files navigation

Brevo Bridge

Provides Brevo integration for Symfony Mailer. This was added upon Sendinblue's rebranding to Brevo.

Configuration example:

# SMTP
MAILER_DSN=brevo+smtp://USERNAME:PASSWORD@default

# API
MAILER_DSN=brevo+api://KEY@default

where:

  • KEY is your Brevo API Key

With API, you can use custom headers.

$params = ['param1' => 'foo', 'param2' => 'bar'];
$json = json_encode(['custom_header_1' => 'custom_value_1']);

$email = new Email();
$email
    ->getHeaders()
    ->add(new MetadataHeader('custom', $json))
    ->add(new TagHeader('TagInHeaders1'))
    ->add(new TagHeader('TagInHeaders2'))
    ->addTextHeader('sender.ip', '1.2.3.4')
    ->addTextHeader('templateId', 1)
    ->addParameterizedHeader('params', 'params', $params)
    ->addTextHeader('foo', 'bar')
;

This example allow you to set:

  • templateId
  • params
  • tags
  • headers
    • sender.ip
    • X-Mailin-Custom

For more information, you can refer to Brevo API documentation.

Resources

About

Symfony Brevo Mailer Bridge

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 13

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy