MailMill .NET Class Library

Mail.SignMode Property

Get or sets a MM_SIGN_MODE value that specifies if the message will be digitally signed, and how it will be signed.

public MM_SIGN_MODE SignMode {get; set;}

Remarks

Note that when using a strongly protected certificate, the operating system will prompted you with a dialog box confirming the fact that you are signing with this certificate. It is therefore not possible to use a strong certificate in a server side environment (ASP, ASPX, etc.)
By default SignMode is set to MM_SIGN_MODE.mmSignNo.

Exceptions

Exception Type Condition
ArgumentException SignMode is set with and invalid MM_SIGN_MODE value.
MailMillException Your license does not allow you to use S/MIME functionalities.

Example

This sample shows how to specify the message signature mode.

Mail oMail = new Mail();
oMail.SignMode = MM_SIGN_MODE.mmSignClear;

See Also

Mail Class | MailMill Namespace | MM_SIGN_MODE | SenderCertificateLocation