emailtemplate create the email template

Hi Friends,

I will create the Email template extesnion look like this

so You can call to this extension using below code.

<?php
Yii::import('application.extensions.EMailTemplate.*');
$options=array();

$obj= new EMailTemplate();
$obj->site_url='www.demo.com';
$obj->subject='Subject:Mail Template';
$obj->header_image = '<img height="76px" width="567px" src="'.Yii::app()->getBaseUrl(true) . "/images/header.png".'">';
$obj->firstname='Maggie';
$obj->lastname='Q';
$obj->content='Lorum ipsum.........';
$obj->thanks_text='Thanks..<br>Maggie Q';
$obj->footer='Need Help? Have Feedback? Feel Free to Contact';

$obj->email='amodi06@gmail.com';
$obj->add_bcc ='amodi06@gmail.com';


$view = $obj->PassParameterOptions($options);
print Yii::app()->EMailTemplate->returnSomething($view);
die;
?>

Install Extesion ΒΆ

1)First You can downloaded the JPHPMailer extesion using this link http://www.yiiframework.com/extension/phpmailer/

and put your extesion in protocted/extersion directory

and also downloaded this EmailTemplate and put the same directory.

2)Open EMailTemplate.php you can set the Email Configuration on actionMailSend Function

3)Finally you may install this extesion on protocted/config/main.php

'components'=>array(
                'EMailTemplate'=>array(
                     'class'=>'application.extensions.EMailTemplate.EMailTemplate',
                ),
),

or

'import'=>array(
		'application.extensions.EMailTemplate.EMailTemplate',	
),
1 5
3 followers
637 downloads
Yii Version: all
License: BSD-2-Clause
Category: Mail
Developed by: Ankit Modi
Created on: Jul 9, 2013
Last updated: 10 years ago

Downloads

show all

Related Extensions