hgacreative / mailgun-webhooks
Mailgun RESTful webhooks
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 4
Type:package
Requires
- php: ^7.1.3
- ext-json: *
- ramsey/uuid: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- orchestra/testbench: ^3.3
- phpunit/phpunit: ^8.4
Suggests
- laravelista/lumen-vendor-publish: Required to publish the package config file in Lumen.
This package is auto-updated.
Last update: 2025-03-01 00:22:43 UTC
README
Provides a seamless way of tracking sent emails.
Install
composer require hgacreative/mailgun-webhooks
Migration
php artisan vendor:publish
publish the tag named: mailgunWebhooks-migrations
php artisan migrate
Creating EmailTracking models Import
use HgaCreative\MailgunWebhooks\Models\EmailTracking;
Create the entry with the following data when you send emails
EmailTracking::create([
'to' => $name,
'email' => $email,
'message_id' => $response->http_response_body->id,
'sent' => $sent,
'bounced' => $bounced
]);