MailMessageAttachSignature Method (CmsSigner, Boolean)
Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.

Namespace: Aspose.Email
Assembly: Aspose.Email (in Aspose.Email.dll) Version: 19.12
Syntax
public virtual MailMessage AttachSignature(
	CmsSigner signer,
	bool detached
)

Parameters

signer
Type: System.Security.Cryptography.PkcsCmsSigner
System.Security.Cryptography.Pkcs.CmsSigner.
detached
Type: SystemBoolean
.If detached is true, the signature is detached.If detached is false(the default), the signature is not detached.

Return Value

Type: MailMessage
The signed MailMessage.
See Also