PHPackages                             dframe/mymail - 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. dframe/mymail

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

dframe/mymail
=============

Mail component for Dframe framework

v2.0.0(5y ago)51.2k↓100%11MITPHPPHP &gt;=7.1CI failing

Since Aug 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dframe/myMail)[ Packagist](https://packagist.org/packages/dframe/mymail)[ Docs](https://dframeframework.com/en/docs/myMail/master/configuration)[ RSS](/packages/dframe-mymail/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (4)Versions (8)Used By (1)

Dframe/MyMail
=============

[](#dframemymail)

[![Build Status](https://camo.githubusercontent.com/1c6795522932eb3aff21c8ddb2e26da9834199315391501a10d4944e8deada83/68747470733a2f2f7472617669732d63692e6f72672f646672616d652f6d794d61696c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dframe/myMail) [![Latest Stable Version](https://camo.githubusercontent.com/d9fa5a84c6dc7418cf4961055d0c3ffc44b585052d830158ddc7ebadc935df48/68747470733a2f2f706f7365722e707567782e6f72672f646672616d652f6d794d61696c2f762f737461626c65)](https://packagist.org/packages/dframe/myMail) [![Latest Unstable Version](https://camo.githubusercontent.com/434396d7d483332ae09d2c49f70c9ba04dae133fd92f61f4a2220565bcd9bb1e/68747470733a2f2f706f7365722e707567782e6f72672f646672616d652f6d794d61696c2f762f756e737461626c65)](https://packagist.org/packages/dframe/myMail) [![License](https://camo.githubusercontent.com/607ce32e5a53d51ebb810cce6e6b95b1d4b22cf11049a0f096a184e5d68f506c/68747470733a2f2f706f7365722e707567782e6f72672f646672616d652f6d794d61696c2f6c6963656e7365)](https://packagist.org/packages/dframe/myMail)

Simple mail wrapper using phpmailer

### Composer

[](#composer)

```
$ composer require dframe/mymail
```

Usage
-----

[](#usage)

#### Standalone example#1 php

[](#standalone-example1-php)

```
use \Dframe\MyMail\MyMail;

require_once __DIR__ . '/../vendor/autoload.php';
$config = require_once 'config/config.php';
$MyMail = new MyMail($config);                                       // Load Config
$addAddress = ['mail' => 'adres@email', 'name' => 'Title From']; // Addresses to send
$MyMail->send($addAddress, 'Test Mail', $body);
```

##### Standalone example#2 php

[](#standalone-example2-php)

```
