PHP:Microsoft Exchange 出现问题,PHP 中没有电子邮件正文
我有一个小问题 imap_fetchstruct,Microsoft SMTP 服务器(? )并通过 application/pkcs7-signature 签名邮件。通常,当我将签名的电子邮件发送到 gmail 服务器时,我不会遇到任何问题。但是,当我在 Microsoft Exchange 上发送此信息时,我从 IMAP 中获得了此结构:
stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => SIGNED
[ifdescription] => 0
[ifid] => 0
[bytes] => -1
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => protocol
[value] => application/pkcs7-signature
)
[1] => stdClass Object
(
[attribute] => micalg
[value] => sha1
)
[2] => stdClass Object
(
[attribute] => boundary
[value] => ----34EFCEA0D98F83964735A9A256302F5D
)
)
[parts] => Array
(
)
)
如您所见,我没有部分,我的问题是,为什么我没有收到 IMAP 结构的此元素?
此外,当我打印 imap_body 时,我可以看到其中的内容电子邮件。
我无法访问微软服务器,有人有类似的东西吗?
I have a litte problem with imap_fetchstructure, Microsoft SMTP Server (?) and signed mails by application/pkcs7-signature. Normally when I send signed email to gmail server I don't have any troubles. But when I send this on Microsoft Exchange I have this structure from IMAP:
stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => SIGNED
[ifdescription] => 0
[ifid] => 0
[bytes] => -1
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => protocol
[value] => application/pkcs7-signature
)
[1] => stdClass Object
(
[attribute] => micalg
[value] => sha1
)
[2] => stdClass Object
(
[attribute] => boundary
[value] => ----34EFCEA0D98F83964735A9A256302F5D
)
)
[parts] => Array
(
)
)
As you can see, I don't have parts, and my question is, why I don't recived this element of IMAP structure?
Additionally, when I print imap_body, I can see what is in email.
I don't have access to Microsoft server, anyone have something like this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
php imap 类有很多错误,当我编写电子邮件系统时,我遇到了大量错误。有解决办法,你必须搜索它。尝试使用一些开源的imap_class.php。
php imap class is very buggy, when I wrote my email system, i got very big amount of bugs. There is workaround, you have to search it. Try to use some imap_class.php open source.