skip to Main Content

Change Laravel mail configuration during runtime

I need to change Laravel Mail Configuration during the runtime. This is because the configuration needs to be changed several times during runtime, not just once on app initialization. foreach ($emails as $email) { Config::set('mail.mailers.smtp.username', $email->email); Config::set('mail.mailers.smtp.password', $email->password); Config::set('mail.from.address', $email->email);…

VIEW QUESTION
Back To Top
Search