PHPackages                             syntaxerro/mail-api-sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. syntaxerro/mail-api-sdk

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

syntaxerro/mail-api-sdk
=======================

Simple PHP SDK for syntax-shell.me HTTP &lt;=&gt; SMTP|IMAP api

1.0(10y ago)215MITPHPPHP &gt;=5.5.0

Since Apr 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/syntaxerro/mail-api-sdk)[ Packagist](https://packagist.org/packages/syntaxerro/mail-api-sdk)[ RSS](/packages/syntaxerro-mail-api-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHP SDK for [syntax-shell.me](https://syntax-shell.me) mail server API
======================================================================

[](#php-sdk-for-syntax-shellme-mail-server-api)

### Installation

[](#installation)

```
composer require syntaxerro/mail-api-sdk

```

### Test

[](#test)

```
phpunit --bootstrap=vendor/autoload.php tests/

```

### Usage

[](#usage)

```
require __DIR__.'/src/SyntaxErro/SyntaxServer.php';
require __DIR__.'/src/SyntaxErro/SmtpBundle/SyntaxEmail.php';
require __DIR__.'/src/SyntaxErro/SmtpBundle/SmtpException.php';
// or use composer for auto-loading

/* Login using email address and password. */
$server = new \SyntaxErro\SyntaxServer("smtp@sntx.ml", "smtp-api-sdk");

/* Create new message to recipient@example.com with content. */
$message = new \SyntaxErro\SmtpBundle\SyntaxEmail("Hello. I'm testing your API.", "recipient@example.com");

/* Set subject of message */
$message->setSubject("It's a test message!");

/* Set reply-to header. */
$message->setReplyTo("other@email.com");

/* Set my full name displayed instead of emails address. */
$message->setAs("Darth Vader");

/* Send message. */
$server->send($message);
```

##### Multiple recipients

[](#multiple-recipients)

```
$message = new \SyntaxErro\SmtpBundle\SyntaxEmail("Hello. I'm testing your API.", ["recipient@example.com", "other@recipient.com"]);
```

or

```
$message = new \SyntaxErro\SmtpBundle\SyntaxEmail("Hello. I'm testing your API.");
$message
    ->addRecipient("recipient@example.com")
    ->addRecipient("other@recipient.com");
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3681d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2231a036bc08c0aacabd8fa853277468ddf80650f9aedf1c9f7da3b33f270214?d=identicon)[syntaxerro](/maintainers/syntaxerro)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/syntaxerro-mail-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/syntaxerro-mail-api-sdk/health.svg)](https://phpackages.com/packages/syntaxerro-mail-api-sdk)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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