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.

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

Install Extesion

1)First You can downloaded the JPHPMailer extesion using this link

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




Total 2 comments

#16639 report it
Ankit Modi at 2014/03/13 11:38pm

Yes You can fetch the email id on db then after set the here..

$obj->email='fethch the db email value';

#16636 report it
Selvakumar Kaliyappan at 2014/03/13 01:19pm
Send to more than one mail from database.

Is this extension is used to send more than one email and the email id have to fetch from the database? I want to mail the peoples who are all registered in the site. Have to fetch the to mail id from database.

Leave a comment

Please to leave your comment.

Create extension