PHPackages                             syu6noob/myail - 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. syu6noob/myail

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

syu6noob/myail
==============

A Simple Email Client for PHP

v1.0.0(1y ago)1141Apache 2.0PHP

Since Nov 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/syu6noob/myail)[ Packagist](https://packagist.org/packages/syu6noob/myail)[ RSS](/packages/syu6noob-myail/feed)WikiDiscussions main Synced 1mo ago

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

 [![](/resources/myail_logo_text.svg)](/resources/myail_logo_text.svg)
======================================================================

[](#--)

🐱 A Simple Email Client for PHP

💡 [What is Myail?](#-what-is-myail) • ✨ [Feature](#-feature) • ⚡ [Requirement](#-requirement) • 🛠️ [Contribution](#%EF%B8%8F-contribution) • 💬 [Feedback](#-feedback) • 📄 [LICENSE](#-license)

💡 What is Myail?
----------------

[](#-what-is-myail)

Myail is a lightweight email client for PHP 7.0 and above.
This library provides methods that can be easily integrated into your projects. Myail doesn’t use the IMAP extension, making it slightly faster.
The name "Myail" is inspired by a cat sound in Japanese "Mya~".

✨ Feature
---------

[](#-feature)

- **POP3 Server Support** - Connect to POP3 servers compliant with RFC 1939, RFC 2449, RFC 2045, and RFC 2047.
- **SSL Connection** - Supports both plaintext and SSL connections. You can also configure [SSL context options](https://www.php.net/manual/en/context.ssl.php) for various SSL connection types.
- **Mail Header Parser** - Format email headers automatically.
- **Mail Saving** - Save entire emails or just the body to a local directory.

### 💫 Upcoming Features

[](#-upcoming-features)

- **SMTP Server Support**
- **IMAP Server Support**
- And more!

If you'd like to help develop these features, contributions are welcome!

⚡ Requirement
-------------

[](#-requirement)

- PHP &gt;= 7.0
- ext-mbstring

🚀 Usage
-------

[](#-usage)

For a complete example, please refer to [example.php](./resources/example.php).

### Installation

[](#installation)

To install using Composer, run the following command:

```
$ composer require syu6noob/myail
```

### Initialization

[](#initialization)

In a PHP file (e.g., `index.php`) in the directory containing the `src/` folder, add the following code:

```
