Class MailAddress
- Namespace
- NuvTools.Notification.Mail
- Assembly
- NuvTools.Notification.Mail.dll
Represents an email address with an optional display name.
public class MailAddress
- Inheritance
-
MailAddress
- Inherited Members
Remarks
This class is used to specify email addresses for senders and recipients in mail messages. It supports both simple email addresses and addresses with friendly display names.
Properties
Address
Gets or sets the email address (e.g., "user@example.com").
public required string Address { get; set; }
Property Value
DisplayName
Gets or sets the optional display name for the email address (e.g., "John Doe").
public string? DisplayName { get; set; }
Property Value
Variables
Gets or sets the optional template variables used to personalize the message for this recipient.
public IDictionary<string, object?>? Variables { get; set; }
Property Value
Remarks
Each provider defines its own template syntax for the placeholders in the subject and body. Providers with no personalization support throw NotSupportedException instead of delivering the message with the placeholders unresolved.