PHP: problems with Microsoft Exchange, no email item in PHP

I have a problem with imap_fetchstructure , Microsoft SMTP Server (?) And signed emails using the / pkcs 7-signature application. Usually, when I send a signed letter to the gmail server, I have no problem. But when I post this to 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 have no parts , and my question is why I did not get this element of the IMAP structure?

Also, when I type imap_body , I can see what is in the email.

I don’t have access to the Microsoft server, does anyone have something like this?

+4
source share
1 answer

php imap class is very buggy, when I wrote my email system, I had a lot of errors. There is a workaround, you should look for it. Try using some kind of source code imap_class.php.

+1
source

Source: https://habr.com/ru/post/1385313/


All Articles