PHPackages                             bayramoff-com/telegram-mail-driver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bayramoff-com/telegram-mail-driver

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bayramoff-com/telegram-mail-driver
==================================

Telegram Mail Driver for Laravel

0.1.8(1y ago)116MITPHPPHP &gt;=8.0

Since Jan 1Pushed 1y agoCompare

[ Source](https://github.com/bayramoff-com/telegram-mail-driver)[ Packagist](https://packagist.org/packages/bayramoff-com/telegram-mail-driver)[ RSS](/packages/bayramoff-com-telegram-mail-driver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

Telegram Mail Driver for Laravel
================================

[](#telegram-mail-driver-for-laravel)

A custom mail driver for Laravel (9, 10, 11, and beyond) that sends messages via the **Telegram Bot API** instead of traditional email. Perfect for sending real-time notifications or alerts directly to Telegram chats.

Features
--------

[](#features)

- **Plug-and-Play**: Integrates seamlessly into Laravel's Mail system.
- **Customizable**: Configure your Telegram chat ID and bot token via `.env`.
- **Lightweight**: Uses Guzzle for HTTP requests and Symfony Mailer for compatibility.

---

Installation
------------

[](#installation)

### 1. Add the Package

[](#1-add-the-package)

Run:

```
composer require bayramoff-com/telegram-mail-driver:0.1.4
```

### 2. Publish the Config

[](#2-publish-the-config)

After installation, publish the configuration file:

```
php artisan vendor:publish --provider="BayramoffCom\TelegramMailDriver\Providers\TelegramMailServiceProvider" --tag=telegram-mail-config
```

This creates a `config/telegram-mail.php` file in your Laravel app.

### 3. Update `.env`

[](#3-update-env)

Set your Telegram bot details in `.env`:

```
MAIL_MAILER=telegram
MAIL_USERNAME=123456789         # Telegram chat_id
MAIL_PASSWORD=999999:ABC-XYZ123 # Telegram bot token
```

### 4. Update `config/mail.php`

[](#4-update-configmailphp)

Add the `telegram` mailer to your `config/mail.php`:

```
return [
    'mailers' => [
        // Existing mailers...
        'telegram' => [
            'transport' => 'telegram',
        ],
    ],
];
```

Clear your config cache if needed:

```
php artisan config:clear
php artisan cache:clear
```

---

Usage
-----

[](#usage)

Use Laravel's `Mail` facade as usual:

```
use Illuminate\Support\Facades\Mail;

Route::get('/test-telegram', function () {
    Mail::raw('Hello from Telegram Mail Driver!', function ($message) {
        $message->subject('Test Telegram Mail Driver');
        $message->to('ignored@example.com'); // Ignored by TelegramTransport
    });

    return 'Message sent to Telegram!';
});
```

Messages will be sent to the Telegram `chat_id` defined in `.env`.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT License](LICENSE).

Enjoy sending Laravel emails via Telegram!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance41

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

493d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec5d55ab0808779669449b817bed2e9c3871983758e7c3ab600fde28fc4afcaf?d=identicon)[bayramoff](/maintainers/bayramoff)

---

Top Contributors

[![shamxalb](https://avatars.githubusercontent.com/u/44984354?v=4)](https://github.com/shamxalb "shamxalb (18 commits)")

### Embed Badge

![Health badge](/badges/bayramoff-com-telegram-mail-driver/health.svg)

```
[![Health](https://phpackages.com/badges/bayramoff-com-telegram-mail-driver/health.svg)](https://phpackages.com/packages/bayramoff-com-telegram-mail-driver)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
