如何在cakephp 2.4.x中删除“此电子邮件是使用CakePHP框架发送的”

程序员

我想知道如何从cakephp中删除“此电子邮件是使用CakePHP框架发送的”。我已从/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再次没有变化。我该怎么做?

罗比·阿夫里尔(Robbie Averill)

Cake 2.4.9安装进行了Agent Ransack搜索,发现这些文件包含您要更改/删除的行:

  • app \ View \ Layouts \ Emails \ html \ default.ctp(第27行)
  • app \ View \ Layouts \ Emails \ text \ default.ctp(第21行)
  • lib \ Cake \ Console \ Templates \ skel \ View \ Layouts \ Emails \ html \ default.ctp(第18行)
  • lib \ Cake \ Console \ Templates \ skel \ View \ Layouts \ Emails \ text \ default.ctp(第21行)
  • lib \ Cake \ Test \ Case \ Controller \ Component \ EmailComponentTest.php(第246、259、309、468、482行)
  • lib \ Cake \ Test \ Case \ Network \ Email \ CakeEmailTest.php(第1277、1299、1487、1491、1495、1503、1514、1638、1641行)
  • lib \ Cake \ Test \ test_app \ Plugin \ TestPlugin \ View \ Layouts \ Emails \ text \ plug_default.ctp(第4行)
  • lib \ Cake \ Test \ test_app \ Plugin \ TestPluginTwo \ View \ Layouts \ Emails \ text \ default.ctp(第4行)
  • lib \ Cake \ Test \ test_app \ View \ Layouts \ Emails \ html \ thin.ctp(第11行)
  • lib \ Cake \ Test \ test_app \ View \ Layouts \ Emails \ html \ default.ctp(第11行)
  • lib \ Cake \ Test \ test_app \ View \ Layouts \ Emails \ text \ default.ctp(第11行)

这些都是现成的Cake 2.4.9安装中的所有通知实例。不过,您应该为电子邮件创建自己的电子邮件视图和布局。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在Symfony2中使用Swiftmailer将PDF附加到电子邮件

如何在不使用视图的情况下使用Laravel 4发送电子邮件?

如何使用身份2中的电子邮件登录?

如何使用Phoenix框架发送电子邮件

如何在Cakephp 2.x中获取当前的数据库连接名称

如何在cakephp 2.x版本中加密密码

如何在Symfony 4的.env文件中配置MAILER_URL以使用Swift_Mailer通过sendmail发送电子邮件?

如何在cakephp3中请求使用电子邮件和纯文本密码登录

如何在cakePHP 2.x中生成CSV文件?

我们如何在cakephp 2中使用任何异步函数或线程

如何在CakePHP中基于2列条件获取数据

如何在cakephp2中创建日志文件

如何在CakePHP 2.x中从帮助器访问视图块?

cakephp2x电子邮件主题行长度

如何在cakephp 2.x中的ajax渲染期间传递变量

我将如何在cakePHP 2.x中编写此查询

如何在CakePHP 2.x中通过INET_ATON保存IP地址?

如何在CakePHP 2中运行全局插件的shell?

如何发送410在cakephp 2.x中消失

如何在CakePHP 3中使用电子邮件传输类“ Debug”

如何在CakePHP 2.x外部访问loggingInUser的SESSION

我如何在cakephp中具有动态电子邮件配置

如何在 web2py 中附加上传的文件以发送电子邮件

如何在 Angular2 中验证电子邮件?

我如何在 CakePHP4 中使用 sortablejs 库?

如何在 cakephp 4.x 中使视图缓存不受限制

如何在 CakePHP 4.x 上更改 FormHelper->dateTime 中的 dateFormat 和 timeFormat?

你如何在 CakePHP 4 的插件中创建自定义命令?

如何在 BuildRules() 函数中查询另一个表 - CakePHP 4.x