I’m working with CakePHP 2.0 and CakeEmail.
I’m able to send emails without any problems.
However, I would like to remove the
“This email was generated with CakePHP Framework”
being added at the end of every single email my app sends. Is that possible?
Thank you so much!
The Short Answer
It’s in
/app/View/Layouts/Emails/html/default.ctpand/app/View/Layouts/Emails/text/default.ctp.It is NOT in
/app/View/Emails/html/default.ctpor/app/View/Emails/text/default.ctp. For some reason, editing these files doesn’t make a difference (it would seem).The Slightly Longer Answer
By default,
/app/View/Layouts/Emails/html/default.ctplooks like this:To remove the footer, delete this line:
Then do the same thing with
/app/View/Layouts/Emails/text/default.ctp.