Download the PHP package molnix/bounced-mail-manager without Composer
On this page you can find all versions of the php package molnix/bounced-mail-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bounced-mail-manager
Bounced mail manager
A package can read IMAP and parse mails to check if they are bounced emails. When used with laravel, can notifiy the original sender.
Installation:
Add the custom headers created by the getCustomHeaders method to outgoing mails.
Laravel
Package can be customized with optional env variables
| Variable | Description |
|---|---|
BOUNCEMAIL_HOST |
IMAP host url, default: MAIL_HOST from .env |
BOUNCEMAIL_PORT |
IMAP port, default: 993 |
BOUNCEMAIL_USERNAME |
IMAP username, default: MAIL_USERNAME from .env |
BOUNCEMAIL_PASSWORD |
IMAP password, default: MAIL_PASSWORD from .env |
BOUNCEMAIL_MAILBOX |
Mailox name, default: INBOX |
BOUNCEMAIL_DELETE_MODE |
False will use read/unread instead of deleting, default: true |
BOUNCEMAIL_TYPE |
Mailbox type: null. imap,o365 , default: imap |
BOUNCEMAIL_OAUTH_CLIENT_ID |
Oauth client id , default: null |
BOUNCEMAIL_OAUTH_SECRET |
Oauth secret , default: null |
BOUNCEMAIL_AZURE_TENANT_ID |
Azure tenant id if using office 365 , default: null |
Configuration
The package will automatically register a service provider. You can publish for further customization.
| Tag | Description |
|---|---|
config |
Configuration |
views |
Notification email markdown |
translations |
Bounce reason translations |
Optionally publish files if further customization is required.
Usage
Use Molnix\BouncedMailManager\Traits\BounceMailHeaders trait in Mailable to add headers to outgoing headers.
Option 1: With setup
Option 2: Without setup
Add this command to the scheduler.
PHP
php use Molnix\BouncedMailManager\BounceManager; $manager = new BounceManager( 'imap.example.com', '993', '[email protected]', 'emailpassword', string $mailbox = 'INBOX', array $options = [] // extra optional options ); powershell
Install-Module -Name AzureAD Install-Module -Name ExchangeOnlineManagement
$AppId = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" $TenantId = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Import-module AzureAD Connect-AzureAd -Tenant $TenantId
($Principal = Get-AzureADServicePrincipal -filter "AppId eq '$AppId'") $PrincipalId = $Principal.ObjectId
$DisplayName = "Bounce manager IMAP Access"
Import-module ExchangeOnlineManagement Connect-ExchangeOnline -Organization $TenantId
New-ServicePrincipal -AppId $AppId -ServiceId $PrincipalId -DisplayName $DisplayName
Add-MailboxPermission -User $PrincipalId -AccessRights FullAccess -Identity "Your email ID"
Usage
Made with ❤ in Finland by [Molnix](https://molnix.com) and [Webbhuset](https://webbhuset.fi)All versions of bounced-mail-manager with dependencies
webklex/php-imap Version ^6.2
nesbot/carbon Version ^3.0
guzzlehttp/guzzle Version ^7.0