无法在ZF2中发送邮件

时间:2015-11-03 09:41:49

标签: php email zend-framework zend-framework2

call_user_func($this->callable, $to, $subject, $body, $headers, $params);

这是我发送邮件的功能,但它会出现以下错误

  

{“error-message”:“无法发送邮件:未知错误”,“错误跟踪”:[{“function”:“mailHandler”,“class”:“Zend \ Mail \ Transport \ Sendmail”, “类型”: “ - \ u003E”, “ARGS”:[ “mujahed69@gmail.com”, “\ u003Cdiv \ u003Ehello \ u003C /格\ u003E”, “= UTF-8,问INFINIA =????” “日期:星期二,2015年11月3日09:40:43 +0000 \ n起因:=?UTF-8?Q?Infinea = 20Team?= \ u003Cservice@infiniaretail.de \ u003E \ nMIME-Version:1.0 \ nContent-Type: text / html \ nContent-Transfer-Encoding:8bit \ n“,” - fservice@infiniaretail.de“]},{”file“:”/ var / www / html / restaurant / vendor / zendframework / zendframework / library / Zend /Mail/Transport/Sendmail.php“,”line“:139,”function“:”call_user_func“,”args“:[[{”__ className“:”Zend \ Mail \ Transport \ Sendmail“}`

1 个答案:

答案 0 :(得分:0)

使用以下链接,您使用自定义功能。在该功能中,您应该粘贴此页面的相同代码
http://framework.zend.com/manual/current/en/modules/zend.mail.introduction.html