How to remove CakePHP "This email was created using the CakePHP Framework" from CakeEmails

I work with CakePHP 2.0 and CakeEmail.

I can send messages without any problems.

However i would like to remove

"This email was created using the CakePHP Framework."

is added at the end of each individual letter sent by my application. Is it possible?

Thank you very much!

+5
source share
4 answers

Short answer

He is 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 does not matter (it would seem).


Slightly long answer

The default is /app/View/Layouts/Emails/html/default.ctpas follows:

<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts.Emails.html
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
    <title><?php echo $title_for_layout;?></title>
</head>
<body>
    <?php echo $content_for_layout;?>

    <p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p>
</body>
</html>

, :

<p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p>

/app/View/Layouts/Emails/text/default.ctp.

+30

2 . , "" , , .

, ... , .

$cakeemail->template('viewtemplate',null);

1- - , NULL - . http://api.cakephp.org/2.3/class-CakeEmail.html, , null.

+1

, aptena, eclipse, dreamweaver, , grep cakephp . , - .

Not sure if removing something like this contradicts the terms of use with the cake, but. if you want to remove it, that would be my start, because I am not 100% familiar with the file structure of the cake.

0
source

This line is actually part of the email layout located in app/View/Layouts/Emails/text/default.ctpand app/View/Layouts/Emails/html/default.ctpfor HTML mail. You can safely edit it. Learn more about email templates in CakePHP .

0
source

All Articles