i am getting the below error when i submitting the contact form.
ReflectionException
Class yii\swiftmailer\Mailer does not exist
i am getting the below error when i submitting the contact form.
ReflectionException
Class yii\swiftmailer\Mailer does not exist
Have you got the line
"yiisoft/yii2-swiftmailer": "*",
in your composer.json?
I didn’t it install through the composer. I have downloaded swiftmailer folder from github and paste it into the vendor/yiisoft/yii2-swiftmailer.
That is the reason. Autoloader doesn’t know where to look for it. You need swiftmailer code and yii2-swiftmailer module. It would be much much easier to just use composer for installation. Now you have to add autoloader entries manually or load this manually - either way it’s not efficient.
yes i fixed it, now it’s working thank you…