con*_*t01 6 php email cakephp-2.0
我正在使用CakePHP 2.0和CakeEmail.
我可以毫无问题地发送电子邮件.
但是,我想删除
"这封电子邮件是使用CakePHP Framework生成的"
在我的应用发送的每封电子邮件的末尾添加.那可能吗?
非常感谢!
Gle*_*iet 31
它在/app/View/Layouts/Emails/html/default.ctp和/app/View/Layouts/Emails/text/default.ctp.
这是不是在/app/View/Emails/html/default.ctp或/app/View/Emails/text/default.ctp.出于某种原因,编辑这些文件并没有什么区别(看起来似乎).
默认情况下,/app/View/Layouts/Emails/html/default.ctp如下所示:
<?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>
Run Code Online (Sandbox Code Playgroud)
要删除页脚,请删除以下行:
<p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p>
Run Code Online (Sandbox Code Playgroud)
然后做同样的事情/app/View/Layouts/Emails/text/default.ctp.
| 归档时间: |
|
| 查看次数: |
6673 次 |
| 最近记录: |