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 6d 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 40% 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

3772d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10521497?v=4)[Marcin Łacina](/maintainers/syntaxerro)[@syntaxerro](https://github.com/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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25026.8M85](/packages/php-http-cache-plugin)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

85997.3k128](/packages/httpsoft-http-message)[thesis/nats

Async (fiber based) client for Nats.

758.3k](/packages/thesis-nats)

PHPackages © 2026

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