S/MIME email encryption/signing using Zend_Mail

Recently I wrote a class for ZF that one can use as a convenient tool for signing and/or encrypting email documents. The tricky thing was that MS Outlook Express did not want to treat it as Signed and Encrypted message unless you add „\n“ to the end of the message , that was hard to find and I had to only experiment as there are almost no good sources in the Internet about this problem. The issue is reported here: https://ua.php.net/manual/en/function.op … .php#36038
except that instead of beginning of a message I should have placed it at the end. Here is the example usage of the class:

Tested ok with attachments, html email, in MS Outlook and Mozilla Thunderbird. Attached is the Zend_Mail_Encryption_SMIME class + patches for Zend_Mail and Zend_Mail_Transport_Abstract classes as well as the classes modified.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.