I am attempting to include SwiftMailer to send out basic mail, but cannot get it to include successfully. I’m new to Yii so please bear with me!
I’ve unpacked it into extensions/swiftMailer
Directory permissions are currently 777 (will change after it is functioning)
Have tried including swift_required, classes dir, etc. The examples below are for the main directory…
I have tried including it via main.php:
'swiftMailer' => array(
'class' => 'ext.swiftMailer',
),
Error: swiftmailer failed to open stream: No such file or directory
also tried within the class using it via:
Yii::import('ext.swiftMailer');
$SM = Yii::app()->swiftMailer;
Error: Property "CWebApplication.swiftMailer" is not defined.
I’ve tried examples from both the swiftMailer documentation as well as from the Yii doc, to no avail. I am wondering what I could possibly be missing here, or if there is some extra step. Any help is greatly appreciated!