php - 如何在 CakePHP 中获得退回的电子邮件?
问题描述
我正在使用 cakePHP 2.0 发送电子邮件。一切正常,但如何捕捉退回的电子邮件?我已经添加了回复并返回,但仍然没有收到退回的电子邮件。
$this->Email->sendAs = 'both';
$this->Email->from = 'abc@xyz.com';
$this->Email->to = 'wrong@wrong.com';
$this->Email->replyTo = 'abc@xyz.com';
$this->Email->return = 'abc@xyz.com';
$this->Email->headers = ['Return-Path'=>'abc@xyz.com'];
$this->Email->subject = 'Test Eail';
$msg = 'Message';
$this->Email->send($msg);
解决方案
推荐阅读
- python - 为什么只有在“静态”文件夹中才能显示图像?
- ios - 在swift4中保存label.text
- c# - 在元素注释中添加超链接 Enterprise Architect
- python - 为什么在对相同数据和相同算法进行评估时会产生两个不同的 AUC 分数
- javascript - AngularJS - 只有字母,没有空格验证
- node.js - 我应该使用哪个来从网站 Google appEngine、computeEngine 或 cloudFunctions 抓取数据
- c++ - C++ 使用用户名/SID 或备用读取任何 Windows 用户 HKEY
- spring-mvc - 在运行 Spring MVC 项目时在 Eclipse 中启动 Delegate Stucks
- javascript - 如何在 JavaScript 中推送数组中的不同元素
- javascript - 看到一个表情。Javascript 错误