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 4w 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 41% 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

3727d 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

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.7k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

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

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M87](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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