【发布时间】:2016-10-28 23:58:24
【问题描述】:
我正在使用 mailgun 来解析传入的电子邮件。 mailgun 将解析后的电子邮件发送到 URL (https://example.com/email)。
我可以获取 from、to、subject、body 等。但是我无法获取附件。
下面是我的代码,它返回一个空值。
$file = addslashes(file_get_contents($this->input->post('attachment-1'))['name']);
$result = $this->tickets_model->saving_files($file);
请帮帮我。
谢谢。
【问题讨论】:
标签: php codeigniter mailgun