SecureEmailManager.AttachSignature

AttachSignature(MailMessage, X509Certificate2)

Creates a copy of the specified MailMessage and adds a digital signature to it.

public virtual MailMessage AttachSignature(MailMessage msg, X509Certificate2 certificate)
ParameterTypeDescription
certificateMailMessageX.509 certificate.
msgX509Certificate2Source MailMessage.

Return Value

Signed MailMessage

See Also


AttachSignature(MapiMessage, X509Certificate2)

Creates a copy of the specified MapiMessage and adds a digital signature to it.

public virtual MapiMessage AttachSignature(MapiMessage msg, X509Certificate2 certificate)
ParameterTypeDescription
certificateMapiMessageX.509 certificate.
msgX509Certificate2Source MapiMessage.

Return Value

Signed MapiMessage

See Also


AttachSignature(MailMessage, CmsSigner)

Creates a copy of the specified MailMessage and adds a digital signature to it.

public virtual MailMessage AttachSignature(MailMessage msg, CmsSigner signer)
ParameterTypeDescription
msgMailMessageSource MailMessage.
signerCmsSignerSystem.Security.Cryptography.Pkcs.CmsSigner.

Return Value

Signed MailMessage

See Also


AttachSignature(MapiMessage, CmsSigner)

Creates a copy of the specified MapiMessage and adds a digital signature to it.

public virtual MapiMessage AttachSignature(MapiMessage msg, CmsSigner signer)
ParameterTypeDescription
msgMapiMessageSource MapiMessage.
signerCmsSignerSystem.Security.Cryptography.Pkcs.CmsSigner.

Return Value

Signed MapiMessage

See Also


AttachSignature(MailMessage, X509Certificate2, SignatureOptions)

Creates a copy of the specified MailMessage and adds a digital signature to it.

public virtual MailMessage AttachSignature(MailMessage msg, X509Certificate2 certificate, 
    SignatureOptions options)
ParameterTypeDescription
msgMailMessageSource MailMessage.
certificateX509Certificate2X.509 certificate.
optionsSignatureOptionsAdditional options SignatureOptions

Return Value

Signed MailMessage

See Also


AttachSignature(MapiMessage, X509Certificate2, SignatureOptions)

Creates a copy of the specified MapiMessage and adds a digital signature to it.

public virtual MapiMessage AttachSignature(MapiMessage msg, X509Certificate2 certificate, 
    SignatureOptions options)
ParameterTypeDescription
msgMapiMessageSource MapiMessage.
certificateX509Certificate2X.509 certificate.
optionsSignatureOptionsAdditional options SignatureOptions

Return Value

Signed MapiMessage

See Also


AttachSignature(MailMessage, CmsSigner, SignatureOptions)

Creates a copy of the specified MailMessage and adds a digital signature to it.

public virtual MailMessage AttachSignature(MailMessage msg, CmsSigner signer, 
    SignatureOptions options)
ParameterTypeDescription
msgMailMessageSource MailMessage.
signerCmsSignerSystem.Security.Cryptography.Pkcs.CmsSigner.
optionsSignatureOptionsAdditional options SignatureOptions

Return Value

Signed MailMessage

See Also


AttachSignature(MapiMessage, CmsSigner, SignatureOptions)

Creates a copy of the specified MapiMessage and adds a digital signature to it.

public virtual MapiMessage AttachSignature(MapiMessage msg, CmsSigner signer, 
    SignatureOptions options)
ParameterTypeDescription
msgMapiMessageSource MapiMessage.
signerCmsSignerSystem.Security.Cryptography.Pkcs.CmsSigner.
optionsSignatureOptionsAdditional options SignatureOptions

Return Value

Signed MapiMessage

See Also