PowerTCP Mail for .NET
ToSmime() Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MessageStream Class > ToSmime Method : ToSmime() Method




Returns a MessageStream that was signed with a Detached Signature message using the sender's certificate obtained from the system certificate store.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ToSmime() As MessageStream
Visual Basic (Usage)Copy Code
Dim instance As MessageStream
Dim value As MessageStream
 
value = instance.ToSmime()
C# 
public MessageStream ToSmime()
Managed Extensions for C++ 
public: MessageStream* ToSmime(); 
C++/CLI 
public:
MessageStream^ ToSmime(); 

Return Value

MessageStream object that is S/MIME encoded.

Remarks

When not specified the default EncodingMethod is EncodingMethod.SignDetached.

When not (or incorrectly) specified, the certificate used for signing is retrieved from the "My" certificate store for the current user. The email address of the sender is used to locate the required certificate.

When not specified, the default signing method is SigningMethod.Md5 and the default form of encryption used is EncryptingMethod.TripleDes.

When not (or incorrectly) specified, the certificates used for encrypting is retrieved from the "AddressBook" certificate store for the current user. The email address of each recipient is used to locate the required certificate.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.