We are sending email from our application by mailgun. We are using laravel 5.2.
But we have multiple mailgun domain created to sending email.
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'business_domain' => env('MAILGUN_DOMAIN_FOR_BUSINESS'),
'secret' => env('MAILGUN_SECRET')
],
Now we wants to send email like this.
-
Mail::send() this methods sending email by default domain.
-
But when we wants to create a different facade like MailByBusiness::send() with send email by business domain.
for archiving this functionality, how to override mailgun transport class and make a facade ?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3lx73Rl
via IFTTT
Aucun commentaire:
Enregistrer un commentaire