我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

php imap_append() - 收件人:具有多个地址的字段

I am using imap_append() to save message in Sent mailbox but the problem is that I cannot have multiple receivers, I use the following code but only the first receiver in the list gets appended. I've read rfc822 and the formatting should work, but I obviously missed something.

...
$msg = $msg."To: ";                                                 
foreach ($emails as $i => $e) {                                   
    $msg .= $names[$i]." <".$e.">, ";
}
//msg formatting -> Foo Bar <foo@bar.com>,
...

近期文章

  • 在PHP中清除回显消息
  • 没有成功在php中创建jSon
  • too long
  • 空白页面的原因
  • 灵活的侧边栏数据库设计
  • too long
  • 在主题加载上设置WP custombackground颜色
  • 使用javascript后,文本框值是否从页面以及打印窗口中消失了?
  • Mysql:访问information_schema会崩溃mysql服务
  • 用PHP填充Flash CompressionAlgorithm.DEFLATE ByteArray
  • 在php mysql中查找具有相似名称的多个表
  • Zend :: encode + blob
  • 使用ajax刷新javascript
  • Wordpress连接被重置? 错误101
  • 在执行php脚本时回显php代码到html文件
  • 在单个页面上强制执行https,然后将其他请求重定向到http
  • 如何在mysql和php中切换Session 2012-13,2013-14 ......等等? [关闭]
  • 我可以根据查询创建表单吗? 在我的数据库中来自不同字段/表的表单中
  • 签入/映射API
  • Drupal无线电形式

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华