[dev] S/MIME again
Michael M Slusarz
slusarz@bigworm.colorado.edu
Fri, 27 Sep 2002 13:40:23 -0600
Quoting Cliff Green <green@UMDNJ.EDU>:
| 2) More annoying, when putting the whole thing together (message body and
| detached signature), I either a) send a MIME message that's got the
| primary
| Content-type set to multipart/mixed, the first attachment set to the
| plaintext
| body, and a second attachment set to the signed message (too many
| attachments)
| OR b) just manage to send the plain message without the signature.
Your code looks correct and should send the correct message (with a content-
type of "multipart/signed"). If it isn't, try the following:
1.) There is an extra single quote in the following line:
$sign_part->setContentTypeParameter('protocol', \
"application/x-pkcs7-signature"');
2.) make sure no other unwanted cases are being run in compose.php (e.g. a
blank text part being added).
3.) do print_r() dumps of $mime and $sign_part right before the message is
sent and send them to me.
michael
______________________________________________
Michael Slusarz [slusarz@bigworm.colorado.edu]
The University of Colorado at Boulder