PHPackages                             m8rge/alternative-mail - 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. m8rge/alternative-mail

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

m8rge/alternative-mail
======================

Simple class for utf8 html/text emails with small attachments

v0.9(12y ago)067MITPHPPHP &gt;=5.3.0

Since Aug 31Pushed 11y ago1 watchersCompare

[ Source](https://github.com/m8rge/AlternativeMail)[ Packagist](https://packagist.org/packages/m8rge/alternative-mail)[ RSS](/packages/m8rge-alternative-mail/feed)WikiDiscussions master Synced today

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

AlternativeMail [![Build Status](https://camo.githubusercontent.com/4d0a4c80a2f4c45611ee4d12e82db13c059170b907bf69eff02cef063cb4cb48/68747470733a2f2f7472617669732d63692e6f72672f6d387267652f416c7465726e61746976654d61696c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/m8rge/AlternativeMail) [![SensioLabsInsight](https://camo.githubusercontent.com/8ae44db9214145b6b635b127cbb3158f9b380c62d3d8179656d11a42c4419cfe/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38323736353035322d306265322d343435652d393261642d6364343934613165343533342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/82765052-0be2-445e-92ad-cd494a1e4534)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#alternativemail--)

Simple php class for utf8 html/text emails with small attachments

Using
-----

[](#using)

```
$email = new AlternativeMail();
$email->setFrom('me@mail.localhost')
    ->addTo('bro@mail.localhost')
    ->setSubject('True story, bro')
    ->setTextBody("simple\ntext\nbody")
    ->send();
```

or

```
$email = new AlternativeMail();
$email->setFrom('me@mail.localhost', 'Your brother')
    ->addTo('bro@mail.localhost', 'My Bro')
    ->addTo('bro2@mail.localhost', 'My Bro, too')
    ->setSubject('True story, bro')
    ->setTextBody("simple\ntext\nbody")
    ->setHtmlBody('html message')
    ->addAttachment(__FILE__, 'forceName.php', 'application/x-php')
    ->send();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4635d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5da56097a7c9aced72f9d376741f2e061123d386fd9e86be9c5d3d1435c0bc7a?d=identicon)[m8rge](/maintainers/m8rge)

---

Top Contributors

[![m8rge](https://avatars.githubusercontent.com/u/575777?v=4)](https://github.com/m8rge "m8rge (32 commits)")

---

Tags

utf-8utf8mailSimplestandaloneattachmentsmallno dependency

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/m8rge-alternative-mail/health.svg)

```
[![Health](https://phpackages.com/badges/m8rge-alternative-mail/health.svg)](https://phpackages.com/packages/m8rge-alternative-mail)
```

###  Alternatives

[php-imap/php-imap

Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)

1.7k12.9M42](/packages/php-imap-php-imap)[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[php-mime-mail-parser/php-mime-mail-parser

A fully tested email parser for PHP 8.0+ (mailparse extension wrapper).

9979.6M27](/packages/php-mime-mail-parser-php-mime-mail-parser)[webklex/php-imap

PHP IMAP client

4365.5M14](/packages/webklex-php-imap)[zbateson/stream-decorators

PHP psr7 stream decorators for mime message part streams

4748.6M6](/packages/zbateson-stream-decorators)[opcodesio/mail-parser

Parse emails without the mailparse extension

216.8M8](/packages/opcodesio-mail-parser)

PHPackages © 2026

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