send the complete SMIME body. don't use string manipulation to remove the MIME headers from the body.
if an error is being reported, add the error message to the plain text body part. this appears to be what is displayed to users on the partner end, so this should help with troubleshooting connection issues.