PHPackages                             jetemail/jetemail-php - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. jetemail/jetemail-php

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

jetemail/jetemail-php
=====================

JetEmail PHP SDK — Send transactional emails with ease.

00PHPCI passing

Since Apr 2Pushed 3mo agoCompare

[ Source](https://github.com/jetemail/jetemail-php)[ Packagist](https://packagist.org/packages/jetemail/jetemail-php)[ RSS](/packages/jetemail-jetemail-php/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

JetEmail PHP SDK
================

[](#jetemail-php-sdk)

The official PHP SDK for [JetEmail](https://jetemail.com) — send transactional emails with ease.

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

[](#installation)

```
composer require jetemail/jetemail-php
```

Requires PHP 8.1+ and Guzzle 7.5+.

> **Note:** You need to create an account at [jetemail.com](https://jetemail.com) to get a transactional API key before using this SDK.

Quick Start
-----------

[](#quick-start)

```
$jetemail = JetEmail::client('your-api-key');

$email = $jetemail->emails->send([
    'from' => 'You ',
    'to' => ['recipient@example.com'],
    'subject' => 'Hello from JetEmail!',
    'html' => 'WelcomeThanks for signing up.',
]);

echo $email->id;
```

Usage
-----

[](#usage)

### Sending Emails

[](#sending-emails)

```
$jetemail = JetEmail::client('your-api-key');

// Send a single email
$email = $jetemail->emails->send([
    'from' => 'App ',
    'to' => 'user@example.com',
    'subject' => 'Order Confirmation',
    'html' => 'Your order has been confirmed.',
    'text' => 'Your order has been confirmed.',
    'cc' => ['manager@example.com'],
    'bcc' => ['archive@example.com'],
    'reply_to' => 'support@example.com',
    'headers' => [
        'X-Custom-Header' => 'value',
    ],
    'attachments' => [
        [
            'filename' => 'receipt.pdf',
            'data' => base64_encode(file_get_contents('/path/to/receipt.pdf')),
        ],
    ],
]);
```

### Batch Emails

[](#batch-emails)

Send up to 100 emails in a single request:

```
$result = $jetemail->batch->send([
    [
        'from' => 'App ',
        'to' => 'user1@example.com',
        'subject' => 'Hello User 1',
        'html' => 'Welcome!',
    ],
    [
        'from' => 'App ',
        'to' => 'user2@example.com',
        'subject' => 'Hello User 2',
        'html' => 'Welcome!',
    ],
]);
```

### Webhook Signature Verification

[](#webhook-signature-verification)

```
use JetEmail\WebhookSignature;
use JetEmail\Exceptions\WebhookSignatureVerificationException;

try {
    WebhookSignature::verify(
        payload: $requestBody,
        signature: $_SERVER['HTTP_X_WEBHOOK_SIGNATURE'],
        timestamp: $_SERVER['HTTP_X_WEBHOOK_TIMESTAMP'],
        secret: 'your-webhook-secret',
    );

    // Signature is valid
} catch (WebhookSignatureVerificationException $e) {
    // Invalid signature
    http_response_code(401);
}
```

Custom Base URL
---------------

[](#custom-base-url)

```
$jetemail = JetEmail::client('your-api-key', 'https://custom-api.example.com');
```

Error Handling
--------------

[](#error-handling)

```
use JetEmail\Exceptions\ErrorException;
use JetEmail\Exceptions\TransporterException;

try {
    $jetemail->emails->send([...]);
} catch (ErrorException $e) {
    // API returned an error
    echo $e->getMessage();
    echo $e->getCode(); // HTTP status code
    print_r($e->getBody()); // Full error response
} catch (TransporterException $e) {
    // Network/transport error
    echo $e->getMessage();
}
```

Available Services
------------------

[](#available-services)

ServicePropertyDescriptionEmail`$client->emails`Send a single emailBatch`$client->batch`Send batch emails (up to 100)License
-------

[](#license)

MIT

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance55

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

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.

### Community

Maintainers

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

---

Top Contributors

[![jetemail](https://avatars.githubusercontent.com/u/172550771?v=4)](https://github.com/jetemail "jetemail (1 commits)")

### Embed Badge

![Health badge](/badges/jetemail-jetemail-php/health.svg)

```
[![Health](https://phpackages.com/badges/jetemail-jetemail-php/health.svg)](https://phpackages.com/packages/jetemail-jetemail-php)
```

###  Alternatives

[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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