RayCraftDocs
v1.0.3 raycraft.dev
On this page

MailView

Complete

Shows the HTML of an e-mail message that comes from outside. The HTML runs in a sandboxed frame without scripts, with a strict content security policy, so it cannot touch the page of the application. Pictures from the internet are blocked until the reader allows them, and links whose shown address differs from the real one are turned off.

Example

MailView control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DarkboolDark background with light text for messages that set no colours of their own.
FillboolFills the height of the parent element; the message scrolls inside.
HeightstringHeight of the frame as a CSS length (default 32rem). Ignored with Fill.
HtmlstringThe HTML of the message.
LabelstringAccessible title of the frame (default Message).
MaxLengthintThe longest HTML that is shown, in characters (default 2,000,000).
ShowRemoteImagesboolAllows pictures from the internet (default false). Two-way.
StylestringInline style added to the root element.

Events

EventTypeDescription
ShowRemoteImagesChangedEventCallback<bool>

Package

MailView is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.