Encrypt

MailMessage.Encrypt method (1 of 2)

Encrypts this message

public virtual MailMessage Encrypt(X509Certificate2 certificate)
Parameter Type Description
certificate X509Certificate2 X509 certificate to encrypt message

Return Value

Encrypted email message

See Also


MailMessage.Encrypt method (2 of 2)

Encrypts this message

public virtual MailMessage Encrypt(X509Certificate2[] certificates)
Parameter Type Description
certificates X509Certificate2[] Array with X509 certificates to encrypt message

Return Value

Encrypted email message

See Also