Zeigen Sie das HTML einer eingehenden E-Mail sicher in Ihrer App, in einem Sandbox-Frame ohne Skripte.
Warum es hilft
- Sandbox
- Keine Skripte
- Sichere Anzeige
Wo es passt
- Mailclients
- Archive
- CRM

Beispiel
<Switch @bind-Value="_dark" Label="Dark background" />
<div style="height:18rem">
<MailView Html="@_message" Fill="true" Dark="_dark" />
</div>
@code {
private bool _dark;
private const string _message = """
<h2 style="margin:0 0 .5em">Meeting notes</h2>
<p>The frame fills its parent: the parent here is 18rem high, and the message scrolls inside.</p>
<ul><li>Budget approved</li><li>Next review on Monday</li></ul>
<p>Mail without its own colours takes the dark background; mail that sets colours keeps them.</p>
""";
} Ein kurzes Fragment. Fügen Sie @using RayCraft.Blazor.Components zu Ihrer Seite hinzu und nutzen Sie einen interaktiven Render-Modus.
Teil von RayCraft Complete.