https://github.com/beyondcode/laravel-mailbox
Catch incoming emails in your Laravel application
https://github.com/beyondcode/laravel-mailbox
hacktoberfest laravel mail mailgun sendgrid
Last synced: 5 months ago
JSON representation
Catch incoming emails in your Laravel application
- Host: GitHub
- URL: https://github.com/beyondcode/laravel-mailbox
- Owner: beyondcode
- License: mit
- Created: 2019-01-21T19:36:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-04T13:35:32.000Z (6 months ago)
- Last Synced: 2025-05-11T11:13:44.554Z (5 months ago)
- Topics: hacktoberfest, laravel, mail, mailgun, sendgrid
- Language: PHP
- Homepage: https://beyondco.de/docs/laravel-mailbox/getting-started/introduction
- Size: 146 KB
- Stars: 1,082
- Watchers: 14
- Forks: 129
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-laravel - Laravel Mailbox - A package to handle incoming emails (Popular Packages)
README
# Laravel Mailbox 📬
[](https://packagist.org/packages/beyondcode/laravel-mailbox)
[](https://packagist.org/packages/beyondcode/laravel-mailbox)Handle incoming emails in your Laravel application.
``` php
Mailbox::from('{username}@gmail.com', function (InboundEmail $email, $username) {
// Access email attributes and content
$subject = $email->subject();$email->reply(new ReplyMailable);
});
```## Installation
You can install the package via composer:
```bash
composer require beyondcode/laravel-mailbox
```## Usage
Take a look at the [official documentation](https://docs.beyondco.de/laravel-mailbox).
## Catch, test and debug application mails with Laravel Herd
Laravel Herd provides an integrated local email service, streamlining the process of testing and debugging application emails.
The email service organizes emails into distinct inboxes for each application, ensuring they are easily accessible and simple to locate.[herd.laravel.com](https://herd.laravel.com)

### Testing
``` bash
composer test
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email marcel@beyondco.de instead of using the issue tracker.
## Credits
- [Marcel Pociot](https://github.com/mpociot)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.