jdavidbakr / mail-tracker

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

Opens and Clicks count of sent mail didn't Increase at Database #119

Closed FelixHtoo closed 3 years ago

FelixHtoo commented 4 years ago

Mail Sent Event is working when Mail are sent. But, View Mail Event couldn't be worked when I Open and View the email. (I tested both GMail and MailTrap)

As documentation, I've added some codes in Event Service Provider, Events and Listeners. I am a newbie. Is there any other things needed to add and use the functions to work Opens and Clicks count increment in database? Please, help me out.

FelixHtoo commented 3 years ago

Finally, I found the answer because I'm was making Mail Send with Raw. Tracking Pixel is adding hidden img with src. So, it'll not work on Mail::raw or text/plain Mails. Just only for Mail::send or text/html mail.

Now, it works well. Hope, this is helpful for anyone who didn't notice like me.