Class MailPreview
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
A mail as its recipient would receive it, rendered from a draft without sending or storing anything.
public sealed record MailPreview : IEquatable<MailPreview>
- Inheritance
-
MailPreview
- Implements
- Inherited Members
Remarks
Html is a whole mail body, the host's template included, and carries the host's own styles; show it isolated from the page, as a sandboxed frame without scripts does, never as markup in the page itself.
Properties
From
The sender as the recipient sees it, name and address.
public string From { get; init; }
Property Value
Html
The HTML body, in the host's template; null when the mail is sent as text alone.
public string Html { get; init; }
Property Value
ReplyTo
Where a reply goes, when not to the sender.
public string ReplyTo { get; init; }
Property Value
Subject
The subject line, as it reads in production.
public string Subject { get; init; }
Property Value
Text
The text body, which is also the alternative an HTML mail carries.
public string Text { get; init; }
Property Value
To
The address it goes to, when it goes to one person; null for a mail to many.
public string To { get; init; }