symfony/sendinblue-mailer

Symfony Sendinblue Mailer Bridge

Installs: 454

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 3

Forks: 0

Type:symfony-bridge

v5.2.0-BETA3 2020-10-24 12:08 UTC

This package is auto-updated.

Last update: 2020-10-28 06:13:06 UTC


README

Provides Sendinblue integration for Symfony Mailer.

Configuration example:

# API
MAILER_DSN=sendinblue+api://$SENDINBLUE_API_KEY@default

# SMTP
MAILER_DSN=sendinblue+smtp://$SENDINBLUE_USERNAME:$SENDINBLUE_PASSWORD@default

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 informations, you can refer to Sendinblue API documentation.

Resources