EmailRecipient record
namespace: Serenity.Extensions assembly: Serenity.Extensions
A recipient of a message, with what is known about it besides its address: the user it is, which the email queue keeps to list the emails of a user, and the values the placeholders of a personalized message are filled with, e.g. Dear {{ DisplayName }} or {{ Branch }}.
public record EmailRecipient
Public Members
| name | description |
|---|---|
| EmailRecipient(…) | A recipient of a message, with what is known about it besides its address: the user it is, which the email queue keeps to list the emails of a user, and the values the placeholders of a personalized message are filled with, e.g. Dear {{ DisplayName }} or {{ Branch }}. |
| Address { get; set; } | The email address. |
| Culture { get; set; } | The culture the numbers and dates of the placeholders are formatted in, e.g. "de-DE", or null for the one of Culture. |
| DisplayName { get; set; } | The name shown next to the address, and the value of the DisplayName placeholder. |
| Kind { get; set; } | The header the recipient is in. |
| UserId { get; set; } | The ID of the user the recipient is, if it is one. |
| Username { get; set; } | The username of the user the recipient is, if it is one. |
| Values { get; set; } | Other values for the placeholders of a personalized message, e.g. "Branch". The properties of the recipient (Address, DisplayName, Username, UserId) win over a value of the same name. |
| virtual GetTemplateValues() | The values the placeholders of a personalized message are filled with for this recipient. |
See Also
- Source: EmailRecipient.cs