articles by tag


cover image

Log emails as *.eml in Laravel Mailer

December 3rd, 2021 by Philip Iezzi 4 min read

How to log full email messages into *.eml files on filesystem in your Laravel project? We would like to log full message bodies for all messages, no matter if they are sent out directly using Laravel's Mail facade or as Mail Notifications. That can actually be implemented in a super easy way, but it was so hard to find any good documentation or tutorial about this.