Yii Framework Forum: Render email - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Render email Rate Topic: -----

#1 User is offline   Stijn 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 04-February 09
  • Location:Belgium

Posted 17 June 2009 - 02:49 PM

What is the best way to send a mail with a body of rendered data?
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,892
  • Joined: 04-October 08
  • Location:DC, USA

Posted 17 June 2009 - 07:45 PM

In an action, do the following:
$body=$this->renderPartial('emailTemplate', $params, true);
0

#3 User is offline   Stijn 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 04-February 09
  • Location:Belgium

Posted 18 June 2009 - 12:45 AM

Thx!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users