Swiftmailer conifguration does not work in common

Hello,

I’m using yii2 advanced template for the new project, I spent a few hours debugging why swiftmailer does not work. The swiftmailer configuration was in common/config/main.php, and once I moved it to frontend/config I received my first email.

Is that normal that I must add swiftmailer configuration in backend and frontend, why common config does not work?

Thanks

Hi,

It’s not normal. Maybe something in frontend config was overriding the common config.

Yes, you right just found uncompeleted configuration in main-local.

1 Like