PHPackages                             maxfreck/pechkin - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. maxfreck/pechkin

ActiveLibrary[HTTP &amp; Networking](/categories/http)

maxfreck/pechkin
================

Pechkin is a small and easy-to-use mailing library for PHP

v0.8.1(5y ago)012MITPHPPHP &gt;=7.1.0CI failing

Since Feb 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/maxfreck/pechkin)[ Packagist](https://packagist.org/packages/maxfreck/pechkin)[ RSS](/packages/maxfreck-pechkin/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (16)Used By (0)

Pechkin — a small and easy-to-use mailing library for PHP
=========================================================

[](#pechkin--a-small-and-easy-to-use-mailing-library-for-php)

Features
--------

[](#features)

- Support for PSR-7 streams.
- Send emails with multiple To, Cc, Bcc and Reply-to addresses.
- Send emails through http/socks proxy.
- Support for raw, multipart/alternative, multipart/mixed and multipart/related emails.

Installing Pechkin
------------------

[](#installing-pechkin)

The recommended way to install Pechkin is through [Composer](http://getcomposer.org).

Install Composer:

```
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of Pechkin:

```
php composer.phar require maxfreck/pechkin
```

After installing, you need to require Composer's autoloader:

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

You can then later update Pechkin using composer:

```
composer.phar update
```

Using Pechkin
-------------

[](#using-pechkin)

All email metainformation (content type, file name, attachment disposition) is passed as a stream metadata.

Basic usage example:

```
