jdavidbakr / mail-tracker

Package for Laravel to inject tracking code into outgoing emails.
MIT License
577 stars 129 forks source link

Email Bounced not working #134

Closed noprobz09 closed 3 years ago

noprobz09 commented 3 years ago

Hi,

I created an event listener for tracking of clicks, views, open and bounce. The rest are working except the bounce event. Below is my code.

namespace App\Listeners;

use jdavidbakr\MailTracker\Events\PermanentBouncedMessageEvent;

class EmailBounced
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {

    }

    /**
     * Handle the event.
     *
     * @param  PermanentBouncedMessageEvent  $event
     * @return void
     */
    public function handle(PermanentBouncedMessageEvent $event)
    {
        // Access the email address using $event->email_address...
       \Log::info($event);
       \Log::info($event->email_address);
    }
}

Let me know what did I missed on the code. Thanks in advance.

noprobz09 commented 3 years ago

By the way I am using Sendgrid as mail provider. Thanks :)

jdavidbakr commented 3 years ago

Bounced only works with SES right now. If you want to flesh out how to do it with Sendgrid and submit a PR, please feel free.

Ankitadeb commented 1 year ago

Does bounce event work without Amazon SNS?

jdavidbakr commented 1 year ago

Does bounce event work without Amazon SNS?

No.