Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

maildocker/maildocker-php

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Maildocker-PHP

This library allows you to quickly and easily send emails through Maildocker using PHP.

Example

require_once "maildocker/Maildocker.php";

$md = new MaildockerClient('0cc175b9c0f1b6a831c', '92eb5ffee6ae2fec3ad');

$message = new Maildocker\Mail();

$message
    ->set_from('maildocker@ecentry.io', 'Maildocker')
    ->add_to('john.snow@thrones.com', 'John Snow')
    ->set_subject('maildocker-php-library')
    ->set_text('**{{system}}** ({{url}})')
    ->add_vars(array('system' => 'Maildocker', 'url' => 'http://maildocker.io'))
    ->add_attachment(array(
        array('name' => 'plaintext.txt', 'type' => 'text/plain', 'content' => 'dHN0'),
        'spreadsheet.xls'
    ));

list($http_status, $response) = $md->send($message);

About

Maildocker (http://maildocker.io) PHP library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.