wkd-swiftmailer SwiftMailer wrapper http://swiftmailer.org/

  1. Installation
  2. Usage
  3. Resources

This is basically updated wrapper of SwiftMailer which can be used as application component.

Installation

  1. Unzip extension contents to protected/extensions/ folder
  2. Set up yii component via config:
...
'mailer' => array(
	'class' => 'ext.swiftMailer.SwiftMailer',
	// For SMTP
	'mailer' => 'smtp',
	'host'=>'localhost',
	'From'=>'admin@localhost',
	'username'=>'smptusername',
	'password'=>'123456',
	// For sendmail:
	'mailer'=>'sendmail',
),
...

Usage

Yii::app()->mailer->AddAddress($email);
Yii::app()->mailer->Subject = "Let's do this!";
Yii::app()->mailer->MsgHTML("<a href='http://site.com'>test</a>");
Yii::app()->mailer->Send();

Please, take a look a SwiftMailer::Send() function

Resources

6 2
19 followers
2 862 downloads
Yii Version: 1.1
License: (not set)
Category: Mail
Developed by: Webkadabra
Created on: Dec 15, 2011
Last updated: 6 years ago

Downloads

show all

Related Extensions