【发布时间】:2015-01-28 10:15:16
【问题描述】:
我仅在 Outlook 2013 中收到了无数据 CSV 附件电子邮件,但收到了包含 gmail 和其他邮件数据的 CSV。 我使用了以下 CakePHP 代码:
$this->Email->reset();
$fileatt = ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS;
$this->Email->to =array('ram@xyz.com');
$this->Email->cc =array('ram@gmail.com');
$this->Email->subject = "CSV mail";
$this->Email->from = "info@gmail.com";
$this->Email->sendAs = 'html';
$this->Email->filePaths = array($fileatt);
$this->Email->attachments =array("Sample.csv");
$this->Email->charset = "utf-8";
$this->Email->headerCharset = "utf-8";
$message = "Hi Thanks!";
$this->Email->send($message);
帮我解决这个问题。
【问题讨论】:
标签: php email cakephp csv outlook