Yii Add email

wkd-swiftmailer( Dowload  )
– extract to extension
– rename directory to swiftMailer
– add code to cofig/main.php
‘mailer’ => array(
‘class’ => ‘ext.swiftMailer.SwiftMailer’,
// For SMTP
‘mailer’ => ‘smtp’,
‘host’ => ‘stmp.gmail.com’,
‘From’ => ‘xxx@gmail.com’,
‘username’ => ‘xxx@gmail.com’,
‘password’ => ‘xxxx’,
‘port’ => ‘465’,
‘security’ => ‘tls’,
// For sendmail:
‘mailer’ => ‘sendmail’,
),