Trouble including SwiftMailer

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!

For anyone else having this issue, apparently there is a bug within the extension. I have removed it and will be trying email extension at this point…

Hi,

First of all - which extension do you use? Is it from http://www.yiiframework.com/extensions/ ?

And there’s an appropriate Extensions forum thread ;)

I use mail extension for email and it uses (and includes bundled) SwiftMailer as well. It "works for me"… .