PHP5/cakephp

Advertisement


Question
hi,

 I am using cakephp, i need to send mail to client through cakephp. the problem is some text should be bold and colored but i am removing html tags before sending mail, so css effects is not getting applied. could you please help me out.

Answer
If you are using the CakePHP Email component (http://book.cakephp.org/1.3/en/The-Manual/Core-Components/Email.html) then you'll need to be sure to set the 'sendAs' property to either 'html' or 'both' before sending your message.

$this->Email->sendAs = 'both';

PHP5

All Answers


Answers by Expert:


Ask Experts

Volunteer


Kevin Cackler

Expertise

Any and everything related to PHP4 and PHP5. I specialize in functional, readable, scalable object oriented code, and can answer your troublesome class and object questions.

Experience

5 years developing in PHP using flat files and databases (MySQL, Oracle) Lead PHP developer for a very large Texas based web hosting company The coder behind some of the largest pet communities online.

Education/Credentials
BS - IT/CS

©2016 About.com. All rights reserved.