PHPackages                             hpolthof/laravel-docmail - 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. [API Development](/categories/api)
4. /
5. hpolthof/laravel-docmail

ActiveLibrary[API Development](/categories/api)

hpolthof/laravel-docmail
========================

An laravel implementation for Docmail.

v0.1.1(10y ago)25.2k—6.7%3MITPHPPHP &gt;=5.4.0

Since Sep 10Pushed 9y ago1 watchersCompare

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

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

Laravel Package for Docmail
===========================

[](#laravel-package-for-docmail)

This packages provides an interface to the mail services of [Docmail](https://www.cfhdocmail.com/). The provide their services in many countries and are able to process mailings at fair rates.

Installing the package
----------------------

[](#installing-the-package)

You can install this package using [Composer](https://www.getcomposer.org/). Go to your commandline and run in the root of your project:

```
composer require hpolthof/laravel-docmail

```

Next, open your `config/app.php` file and add the following service provider:

```
\Hpolthof\Docmail\DocmailServiceProvider::class,

```

Then add the following facade to your list of aliases:

```
'Docmail'   => \Hpolthof\Docmail\DocmailFacade::class,

```

Usage
-----

[](#usage)

```
\Docmail::sendFile(storage_path('temp/test.pdf'), function(\Hpolthof\Docmail\DocmailService $docmail) {
    // Name the mailing, defaults to the OrderRef.
    $docmail->getMailing()->setMailingName('Test Mailing');

    // Change the filename.
    $docmail->getTemplate()->setFileName('MyPrettyLetterFilename.pdf');

    // Add all the addresses you want.
    $docmail->addBasicAddress('John Doe', 'Testersroad 3', '32444 Testersvalley');

    // If you have a discountcode you can apply it.
    $docmail->getMailing()->setDiscountCode('');
});

```

API Reference
-------------

[](#api-reference)

For the detailed API Reference please refer to the [API Documentation](http://hpolthof.github.io/laravel-docmail/docs/namespaces/Hpolthof.Docmail.html).

Important notice
----------------

[](#important-notice)

Although you can run the interaction with Docmail, within your controller. It is advised to make use of Jobs that are processed in the background. Although the processing is mostly done within a few seconds, the processing at the Docmail server can take up to a few minutes. Therefor background Jobs should be used to maintain optimal performance.

> Read more on creating Jobs in the [Laravel Documentation](http://laravel.com/docs/5.1/queues#writing-job-classes).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3950d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/de1aeabf860985f978f94da5a6fe0fee1df693abb2ab2453375bdfc013b3f8ac?d=identicon)[hpolthof](/maintainers/hpolthof)

---

Top Contributors

[![hpolthof](https://avatars.githubusercontent.com/u/1415623?v=4)](https://github.com/hpolthof "hpolthof (4 commits)")

---

Tags

laraveldocmail

### Embed Badge

![Health badge](/badges/hpolthof-laravel-docmail/health.svg)

```
[![Health](https://phpackages.com/badges/hpolthof-laravel-docmail/health.svg)](https://phpackages.com/packages/hpolthof-laravel-docmail)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.9k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6279.6k5](/packages/riclep-laravel-storyblok)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
