Creating own mail provider for Laravel 5.4

Viewed 3758

Sometimes we have to integrate custom mail provider. But Laravel has a fixed list of them. Here they are:

  • SMTP
  • sendmail
  • ses
  • Mailgun
  • Mandrill
  • Sparkpost

Instructions for these drivers you can find in framework/src/Illuminate/Mail/TransportManager.php

The problem is that those instructions are fixed. Of course you can modify vendor-file but will be a dirty hack. So In the answer I'll provide some instruction how to implement your own custom mail driver in right way.

1 Answers
Related