Yii Framework Forum

Swiftmailer conifguration does not work in common


#1

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


(Mehdi Achour) #2

Hi,

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


#3

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