'Why mail facade method "mailer" not working?
I'm trying to set up sending mail from different mail drivers. For this I use the mailer method https://laravel.com/docs/8.x/mail#sending-mail-via-a-specific-mailer.
Here is my code
Mail::mailer('mailgun')
->to($user)
->later(now()->addSeconds(10), new NewProductMail($product));
When submitting, Laravel still uses the default driver, not the one I specified. How to solve this problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
