PHPackages                             iceithq/mail-php - 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. iceithq/mail-php

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

iceithq/mail-php
================

v0.0.3(8mo ago)03MITPHP

Since Sep 18Pushed 8mo agoCompare

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

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Mail API Client (PHP)
=====================

[](#mail-api-client-php)

A simple PHP class for sending emails (with optional attachments) through an API endpoint.
Designed under the namespace `com\iceithq`.

---

Installation
------------

[](#installation)

1. Make sure you have [Composer](https://getcomposer.org/) installed.
2. In your project, add this package to your `composer.json` autoload section:

```
"autoload": {
  "psr-4": {
    "com\\iceithq\\": "src/"
  }
}
```

3. Run:

```
composer dump-autoload
```

4. Require Composer’s autoloader in your project:

```
require __DIR__ . '/vendor/autoload.php';
```

Usage
-----

[](#usage)

Basic Example

```
