New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

codewiser/laravel-sendsay-mailer

SendSay mailer for Laravel
1,975 1
Install
composer require codewiser/laravel-sendsay-mailer
Latest Version:v1.1.2
PHP:^8.1
Laravel:10 · 11 · 12
License:MIT
Last Updated:May 21, 2025
Links: GitHub  ·  Packagist
Maintainer: Cellard

SendSay mailer for Laravel

This package brings one more mailer to your Laravel project — https://sendsay.ru service.

It supports as personal, as mass sending of emails.

Disclaimer

This mailer was tested with very specific tasks, so we can not guarantee that it will meet your expectations.

Installation

Just install package from composer.

Configuration

Add sendsay section to mail.mailers config of your application:

'sendsay' => [
    'transport' => 'sendsay',
    'endpoint' => env('SENDSAY_URL', 'https://api.sendsay.ru/general/api/v100/json'),
    'login' => env('SENDSAY_LOGIN'),
    'password' => env('SENDSAY_PASS'),
    'sub_login' => env('SENDSAY_SUBLOGIN', ''),
],

Service will write info/error logs to channel defined in mail.mailers.log.channel config.

Finally, set MAIL_MAILER=sendsay to your .env file.

Mass sending

Compose Mailable with more than one recipient and just send it:

use Illuminate\Support\Facades\Mail;

$recipients = [
    'foo@example.com',
    'bar@example.com',
];

Mail::send(new CustomMailable($recipients));

Personal sending

Compose Mailable with only one recipient or use Notification.

Getting response

The only way to pass mailer response through facade back to the application (that I found) it to append response as a debug of \Symfony\Component\Mailer\SentMessage:

use Illuminate\Support\Facades\Mail;
use Illuminate\Mail\Events\MessageSent;

$recipients = [
    'foo@example.com',
    'bar@example.com',
];

Event::listen(MessageSent::class, function (MessageSent $event) {
    // json encoded response
    dump($event->sent->getDebug());
});

Mail::send(new CustomMailable($recipients));

Related Packages

beholdr/sendsay-laravel

Unofficial Sendsay.ru mailer transport for Laravel to sending transactional emai...

4,206 1
clinically-au/laravel-smtp2go

Laravel Mail transport driver for SMTP2Go API

17,931 0
sun/sunmailer

SunMailer helps you to send email easily.

454 3
spatie/laravel-mail-preview

A mail driver to quickly preview mail

593,150 1,292

Version History

Version Released PHP Laravel License
v1.1.2 ^8.1 >=10.0 MIT
v1.1.1 ^8.1 >=10.0 MIT
v1.1.0 ^8.1 ^10.0|^11.0 MIT
v1.0.1 ^8.1 ^10.0 MIT
v1.0.0 ^8.1 ^10.0 MIT