Skip to content

Provides Azure Communication Service integration for Symfony Mailer / Laravel.

License

Notifications You must be signed in to change notification settings

StyleShoots/azure-mailer-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft Azure (ACS) Bridge

Provides Azure Communication Service integration for Symfony Mailer.

✅ Including Laravel Service Provider boot script! (L9+)

Latest Stable Version Latest Unstable Version Total Downloads License

This library provides developers with a simple set of features for sending Laravel Framework emails through the Microsoft Azure ECS service.

💡 Requirements

🧩 Available resources

Resource Status
Plain Text
HTML
Attachments
Multiple recipients
Auth HMAC-SHA256
Notifications
Mkt Campaigns
Markdown

📦 Installation

First time using Azure ECS? Create your Azure account, if you don’t have one already.

  1. Download Composer if not already installed

  2. On your project directory run on the command line composer require hafael/azure-mailer-driver symfony/http-client

  3. Get your Azure CS Access Key and Service Endpoint.

🌟 Set mail config

Add entry to [root-of-laravel]/config/mail.php:

  <?php
    
    ...

    'mailers' => [
        //...other drivers

        'azure' => [
            'transport'             => 'azure',
            'endpoint'              => env('AZURE_MAIL_ENDPOINT', 'https://{communicatonServiceName}.communication.azure.com'),
            'access_key'            => env('AZURE_MAIL_KEY'),
            'api_version'           => env('AZURE_MAIL_API_VERSION', '2023-03-31'),
            'disable_user_tracking' => env('AZURE_MAIL_DISABLE_TRACKING', false),
        ],
    ]

  ?>

Add entry to [root-of-laravel]/.env:

  
  #...other entries

  # Mail service entries... 
  MAIL_MAILER=azure
  
  # Azure Service entries
  AZURE_MAIL_ENDPOINT="https://{communicatonServiceName}.communication.azure.com"
  AZURE_MAIL_KEY="{base64accessToken}"
  # AZURE_MAIL_API_VERSION=2023-03-31 #optional
  # AZURE_MAIL_DISABLE_TRACKING=false #optional
  

and just sent your notification mail messages!

📚 Documentation

Build powerful, cloud-based communication and customer engagement experiences by adding voice, video, chat, sms, email, teams interoperability, call automation, and telephony to your apps.

Visit our Dev Site for further information regarding:

  • Azure Communication Service Docs: English

📜 License

MIT license. Copyright (c) 2023 - Rafael For more information, see the LICENSE file.

About

Provides Azure Communication Service integration for Symfony Mailer / Laravel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%