EmailSendOptions class
namespace: Serenity.Extensions assembly: Serenity.Extensions
What is known about a message besides itself, for Send and Enqueue: how it is sent to several recipients, who they are, what it is about, and how the email queue shows it.
public class EmailSendOptions
Public Members
| name | description |
|---|---|
| EmailSendOptions() | The default constructor. |
| Associations { get; set; } | The records the message is about. |
| Culture { get; set; } | The culture the numbers and dates of the placeholders are formatted in for the recipients without one of their own, or null for the current culture. |
| DeliveryMode { get; set; } | How the message is sent to several recipients. |
| Personalize { get; set; } | Whether the subject and the text parts of the message are templates that are filled for each recipient, e.g. Dear {{ DisplayName }}, see GetTemplateValues. Only a message sent Individually can be personalized. Text that is not part of the template itself, e.g. the name of a record that was rendered into the body, must not be read as template text, see Escape. |
| Purpose { get; set; } | What the message is for, e.g. "PasswordReset" or "Invoice", which the email queue shows and filters by. Unlike Template, it stays the same when the template of the message changes; see EmailPurposes for the ones of the framework. |
| Recipients { get; set; } | The recipients, which replace the ones in the headers of the message when given. |
| ScheduledDate { get; set; } | The UTC time the email queue sends the message at, or null to send it as soon as it can. |
| Sensitive { get; set; } | Whether the message has something secret in it, e.g. the link of a password reset or a sign-in code, which the email queue doesn't show as it is. |
| Template { get; set; } | The template the message was rendered from, if any, e.g. the path of a view or the key of an email template, which the email queue shows. |
See Also
- Source: EmailSendOptions.cs