PHP:Microsoft Exchange 出现问题,PHP 中没有电子邮件正文

发布于 2024-12-20 05:04:29 字数 1331 浏览 2 评论 0原文

我有一个小问题 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

日暮斜阳 2024-12-27 05:04:29

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文