PHPackages                             neyric/inbound-email-bundle - 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. neyric/inbound-email-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

neyric/inbound-email-bundle
===========================

Inbound emails for Symfony apps with Sendgrid and Mailjet support

v1.3.0(5y ago)25.7k1[1 PRs](https://github.com/neyric/inbound-email-bundle/pulls)MITPHP

Since Dec 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/neyric/inbound-email-bundle)[ Packagist](https://packagist.org/packages/neyric/inbound-email-bundle)[ Docs](https://github.com/neyric/inbound-email-bundle)[ RSS](/packages/neyric-inbound-email-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

InboundEmailBundle for Symfony [![Build Status](https://camo.githubusercontent.com/1dbafcf35b5cb24ad4d0e57b9641b8a97d2aac213bf515f88e299d7587425693/68747470733a2f2f7472617669732d63692e6f72672f6e65797269632f696e626f756e642d656d61696c2d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/neyric/inbound-email-bundle) [![Latest Stable Version](https://camo.githubusercontent.com/1256ab4ed714ad1ab37e9e35eb4c8559fcdba78eeb23ca2c98ca21776dc87f15/68747470733a2f2f706f7365722e707567782e6f72672f6e65797269632f696e626f756e642d656d61696c2d62756e646c652f762f737461626c65)](https://packagist.org/packages/neyric/inbound-email-bundle) [![Total Downloads](https://camo.githubusercontent.com/59669fcca979aeb26e48444c4ecf66b7be8afc28b7a9fd07025af789647ebce1/68747470733a2f2f706f7365722e707567782e6f72672f6e65797269632f696e626f756e642d656d61696c2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/neyric/inbound-email-bundle) [![License](https://camo.githubusercontent.com/ebb8ccbfaa11f032b8a758739d3bbe36beed9d5df79e27db42ccd2ec46b41187/68747470733a2f2f706f7365722e707567782e6f72672f6e65797269632f696e626f756e642d656d61696c2d62756e646c652f6c6963656e7365)](https://packagist.org/packages/neyric/inbound-email-bundle)
====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#inboundemailbundle-for-symfony----)

Inbound emails for Symfony apps with Sendgrid and Mailjet support.

Principle
---------

[](#principle)

This bundle provides a standardized `InboundEmailEvent` to your application.

Additionnaly, emails replies are parsed using [willdurand/email-reply-parser](https://github.com/willdurand/EmailReplyParser), which will strip the text content from quoted texts and signature.

The `InboundEmailEvent` is dispatched by configurable webhook-handler controllers, and currently supports two email gateways :

- Sendgrid (cf. [Inbound Email Parse Webhook documentation](https://sendgrid.com/docs/for-developers/parsing-email/inbound-email/) )
- Mailjet (cf. [Parse API documentation](https://dev.mailjet.com/email/guides/parse-api/))

Requirements
------------

[](#requirements)

To use this bundle, you will need (as a minimum):

- PHP v7.1
- Symfony &gt;= 4.3
- A Sendgrid or Mailjet account

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require neyric/inbound-email-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require neyric/inbound-email-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
