Class ValidationOptions
- Namespace
- Wolfgang.Extensions.Mail.Validation
- Assembly
- Wolfgang.Extensions.Mail.dll
Provides configuration options for MailMessage validation.
public sealed class ValidationOptions
- Inheritance
-
ValidationOptions
- Inherited Members
Properties
MaxAttachmentSizeBytes
Gets or sets the maximum allowed size in bytes for a single attachment. When set, attachments exceeding this size will produce a warning.
public long? MaxAttachmentSizeBytes { get; set; }
Property Value
- long?
MaxTotalAttachmentSizeBytes
Gets or sets the maximum allowed total size in bytes for all attachments combined. When set, a total size exceeding this value will produce a warning.
public long? MaxTotalAttachmentSizeBytes { get; set; }
Property Value
- long?
RequireBody
Gets or sets a value indicating whether an empty or null body (with no alternate views)
should be treated as an error instead of a warning. Defaults to false.
public bool RequireBody { get; set; }
Property Value
RequireSubject
Gets or sets a value indicating whether an empty or null subject should be treated
as an error instead of a warning. Defaults to false.
public bool RequireSubject { get; set; }