hafael / azure-mailer-driver
Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. π
Installs: 60 388
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 1
Forks: 7
Open Issues: 0
pkg:composer/hafael/azure-mailer-driver
Requires
- php: >=8.2
- symfony/azure-mailer: ^7.2
- symfony/mailer: ^7.2
Requires (Dev)
- symfony/http-client: ^6.4|^7.0
This package is auto-updated.
Last update: 2025-10-28 20:21:42 UTC
README
β Simple implementation example of Symfony Azure Mailer Bridge for Laravel Framework.
β Bootable scripts for Laravel 9+
A use case of the symfony/azure-mailer component using bootable scripts in the Laravel framework to send email messages.
π‘ Requirements
- PHP 8.2 or higher
- symfony/azure-mailer
π§© 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.
- 
Download Composer if not already installed 
- 
On your project directory run on the command line composer require hafael/azure-mailer-driver
- 
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', 'resource_name' => env('AZURE_MAIL_RESOURCE_NAME'), 'endpoint' => env('AZURE_MAIL_ENDPOINT', 'https://my-acs-resource-name.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_RESOURCE_NAME=my-acs-resource-name
  # AZURE_MAIL_ENDPOINT= #optional
  AZURE_MAIL_KEY=Base64AzureAccessToken
  # 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
π‘ Last change
** 0.3.0
- Change to Symfony Azure Bridge
- New entry in config and .env file: "resource_name" and "AZURE_MAIL_RESOURCE_NAME"
π License
MIT license. Copyright (c) 2023 - Rafael For more information, see the LICENSE file.