PHPackages                             sxstem/mails - 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. sxstem/mails

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

sxstem/mails
============

Mails

1.0.1(6y ago)016MITPHP

Since May 14Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Mails, PHP Mails
================

[](#mails-php-mails)

Install
-------

[](#install)

The recommended way to install sxstem/mails is through [Composer](http://getcomposer.org).

```
composer require sxstem/mails
```

Example
-------

[](#example)

- GET

```
$mail = new \Sxstem\Mails\Imap(username, passwork, [mailbox]);  //The mailbox defaults to inbox

$result = $mail->getFolder(); //get folder

//$result = $mail->getUid();  //before this,you can use $mail->setBeginDate(),$mail->setEndDate() to set bigin date, end date

//$result = $mail->getHeader($uid); //Not passing the uid means getting the headers for all messages under the current mailbox

//$result = $mail->getMsgnoByUid($uid);

//$result = $mail->getBody($msgno);

//$result = $mail->setFolder($mailbox);  //reconnect imap

$mail->imapClose();
```

- Mark

```
$mail = new \Sxstem\Mails\Mark(username, passwork, [mailbox]);

$result = $mail->set_seen($uid);

//$result = $mail->clear_seen($uid);

//$result = $mail->set_flagged($uid);

//$result = $mail->clear_flagged($uid);

//$result = $mail->set_deleted($uid);

//$result = $mail->set_answered($uid);

//$result = $mail->move_mail($uid, $mailbox);

$mail->imapClose();
```

- SMTP

```
$mail = new \Sxstem\Mails\Smtp(username, passwork);

$result = $mail->send($subject, $to, $cc, $mails_body, $attach, $in_reply_to, $references);
//$cc, $attach, $in_reply_to, $references can be ''
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.5% 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 ~1 days

Total

2

Last Release

2194d ago

### Community

Maintainers

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

---

Top Contributors

[![MarkoCa1](https://avatars.githubusercontent.com/u/59492330?v=4)](https://github.com/MarkoCa1 "MarkoCa1 (13 commits)")[![gtspoon](https://avatars.githubusercontent.com/u/2741604?v=4)](https://github.com/gtspoon "gtspoon (4 commits)")

### Embed Badge

![Health badge](/badges/sxstem-mails/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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