how to use template and layouts in cakephp

Posted on 2008-02-03
Medium Priority
Last Modified: 2008-02-06
i want to send  html email with images from cakephp.. how do i use template and layouts.

is there any other way to send it then let me please.. i m using cakephp
Question by:deepakabc
  • 2
LVL 82

Expert Comment

ID: 20812421
I'm not sure if this is what you are looking for:

Author Comment

ID: 20836879
i want to send email just as a page.. i don't want to send email as attachement.

i want to pick page from internet and send it by mail...

how can i do with catch php
LVL 82

Accepted Solution

hielo earned 1500 total points
ID: 20838267
I was not suggesting you to attach anything. That example has:

$mail->IsHTML(true);  // set email format to HTML

and also:
    $mail->Body    = $this->bodyHTML();
    $mail->AltBody = $this->bodyText();

just ingore the part that is attching files

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

How do you create a user-centered user experience on your website? And what are some things you should consider in the process?
There is a wide range of advantages associated with the use of ASP.NET. This is why this programming framework is used to create excellent enterprise-class websites, technologies, and web applications.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question