5 months ago

Possible to use multiple mailgun domains?

Posted 5 months ago by shawnyv

Hi all!

I've got an application where I need to use different mail domains for different tasks (IE: task 1 uses "" and task2 uses "")

Is there an easier way to handle this than wrapping each mailable requirement within code like this:

        $starting_domain = config('services.mailgun.domain');
        config()->set('services.mailgun.domain', '');
        // ...Code here

Thanks for any help!

Please sign in or create an account to participate in this conversation.