New

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

beholdr/sendsay-laravel

Unofficial Sendsay.ru mailer transport for Laravel to sending transactional emails.
4,233 1
Install
composer require beholdr/sendsay-laravel
Latest Version:v0.1.4
PHP:^8.1
Laravel:10 – 13
License:MIT
Last Updated:Apr 2, 2026
Links: GitHub  ·  Packagist
Maintainer: beholdr

Sendsay Laravel

Latest Version on Packagist

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

Support

Do you like Sendsay Laravel? Please support me via Boosty.

Installation

You can install the package via composer:

composer require beholdr/sendsay-laravel

You need to set .env variables:

MAIL_SENDSAY_ACCOUNT="root_account_name"
MAIL_SENDSAY_KEY="YOUR_API_KEY"

And add mailer transport in config/mail.php:

'mailers' => [
    ...
    'sendsay' => [
        'transport' => 'sendsay',
    ],
]

Optionally, you can publish the config file with:

php artisan vendor:publish --tag="sendsay-config"

Usage

For better user experience you should provide unsubscribe link in your emails. You can add such link, using special code #UNSUBSCRIBE_LINK# in your templates, that will be substituted with a real url.

For example, if you are using markdown mailables:

  1. Publish laravel-mail components:
php artisan vendor:publish --tag=laravel-mail
  1. Add to html footer template code:
@aware(['unsubscribe'])

...

@if ($unsubscribe)
<a style="font-size: 12px" href="https://github.com/beholdr/sendsay-laravel/blob/HEAD/{{ $unsubscribe }}">{{ __('Unsubscribe') }}</a>
@endif
  1. Add to text footer template code:
@aware(['unsubscribe'])

...

@if ($unsubscribe)
{{ __('Unsubscribe') }}: {{ $unsubscribe }}
@endif
  1. Pass unsubscribe prop to x-mail::message component in letter template:
<x-mail::message :unsubscribe="$mailer === 'sendsay' ? '#UNSUBSCRIBE_LINK#' : false">
...
</x-mail::message>

Proxy

If you set APP_LOCAL_PROXY variable, your requests to Sendsay.ru will be proxified via given proxy. Example for proxy inside Docker:

APP_LOCAL_PROXY="socks5://host.docker.internal:8123"

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.

Related Packages

codewiser/laravel-sendsay-mailer

SendSay mailer for Laravel

2,079 1
hugomyb/error-mailer

Receive instant alerts to stay informed about errors occurring on your website a...

1,013 4
fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

5,256,044 593
gocpa/sendsay-laravel-mailer

Неофициальный Laravel драйвер для Sendsay

9,215 1
twenty20/mailer

A multi-provider mailer package for SendGrid, Amazon SES.

5,889 0

Version History

Version Released PHP Laravel License
v0.1.4 ^8.1 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v0.1.3 ^8.1 ^10.0 || ^11.0 || ^12.0 MIT
v0.1.2 ^8.1 ^10.0 || ^11.0 MIT
v0.1.1 ^8.1 ^10.0 MIT
v0.1.0 ^8.1 ^10.0 MIT