PHPackages                             buzzingpixel/corbomite-mailer - 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. buzzingpixel/corbomite-mailer

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

buzzingpixel/corbomite-mailer
=============================

Corbomite Mailer

1.1.0(7y ago)0195Apache-2.0PHPPHP &gt;=7.2

Since Jan 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/buzzingpixel/corbomite-mailer)[ Packagist](https://packagist.org/packages/buzzingpixel/corbomite-mailer)[ RSS](/packages/buzzingpixel-corbomite-mailer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (18)Versions (4)Used By (0)

Corbomite Mailer
================

[](#corbomite-mailer)

[![](https://camo.githubusercontent.com/5abf62dfa67742ecb777e743e7616f1188b21d54331ed5b7971f322d5c280a62/68747470733a2f2f7472617669732d63692e6f72672f62757a7a696e67706978656c2f636f72626f6d6974652d6d61696c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/buzzingpixel/corbomite-mailer)

Part of BuzzingPixel's Corbomite project.

Provides transaction email capabilities.

Usage
-----

[](#usage)

### Queue

[](#queue)

The Mailer makes use of the Corobomite Queue feature so be sure you have the queue running.

### Webmaster From and Email environment variables

[](#webmaster-from-and-email-environment-variables)

For deliverability, emails are ways sent from the the webmaster email. Be sure to set the following environment variables:

- `WEBMASTER_EMAIL_ADDRESS=info@mysite.com`
- `WEBMASTER_NAME="Some Name"`

### CORBOMITE\_MAILER\_ADAPTER\_CLASS environment variable

[](#corbomite_mailer_adapter_class-environment-variable)

To set what adapter the mailer uses, make sure to set the `CORBOMITE_MAILER_ADAPTER_CLASS` environment variable to a fully qualified class name of an adapter. The built-in adapters are:

- `buzzingpixel\corbomitemailer\adapters\SendGridSendMailAdapter`
- `buzzingpixel\corbomitemailer\adapters\MandrillMailSendMailAdapter`
- `buzzingpixel\corbomitemailer\adapters\MailGunSendMailAdapter`
- `buzzingpixel\corbomitemailer\adapters\PostMarkSendMailAdapter`

You can also write your own adapter. It must implement `buzzingpixel\corbomitemailer\interfaces\SendMailAdapterInterface`.

### Built-in Adapter Environment variables

[](#built-in-adapter-environment-variables)

#### SendGridSendMailAdapter

[](#sendgridsendmailadapter)

To use the `SendGridSendMailAdapter`, be sure to set the `SENDGRID_API_KEY` environment variable.

#### MandrillMailSendMailAdapter

[](#mandrillmailsendmailadapter)

To use the `MandrillMailSendMailAdapter`, be sure to set the `MANDRILL_API_KEY` environment variable.

### MailGunSendMailAdapter

[](#mailgunsendmailadapter)

To use the `MailGunSendMailAdapter`, be sure to set the `MAILGUN_API_KEY` and `MAILGUN_DOMAIN` environment variables.

### PostMarkSendMailAdapter

[](#postmarksendmailadapter)

To use the `PostMarkSendMailAdapter`, be sure to set the `POSTMARK_SERVER_TOKEN` environment variable.

### Sending email

[](#sending-email)

```
