Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

symfony/esendex-notifier

Open more actions menu

Esendex Notifier

Provides Esendex integration for Symfony Notifier.

DSN example

ESENDEX_DSN=esendex://EMAIL:PASSWORD@default?accountreference=ACCOUNT_REFERENCE&from=FROM

where:

  • EMAIL is your Esendex account email
  • PASSWORD is the Esendex API password
  • ACCOUNT_REFERENCE is the Esendex account reference that the messages should be sent from
  • FROM is the alphanumeric originator for the message to appear to originate from

See Esendex documentation at https://developers.esendex.com/api-reference#smsapis

Adding Options to a Message

With an Esendex Message, you can use the EsendexOptions class to add message options.

use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Bridge\Esendex\EsendexOptions;

$sms = new SmsMessage('+1411111111', 'My message');

$options = (new EsendexOptions())
    ->accountReference('account_reference')
    // ...
    ;

// Add the custom options to the sms message and send the message
$sms->options($options);

$texter->send($sms);

Sponsor

This package is looking for a backer.

Help Symfony by sponsoring its development!

Resources

Morty Proxy This is a proxified and sanitized view of the page, visit original site.