BPT

Email

The BptEmail component provides an email composition form with From, To, Cc, Bcc, Subject, optional scheduled send, and message body. Supports inline and popup modes, reply functionality, and fires callbacks on Send and Cancel.

Email Parameters
Current Configuration
📋 [+]
<BptEmail From="user@example.com"
          ToSuggestions="recipientSuggestions"
          OnSend="HandleSend"
          OnCancel="HandleCancel"
          OnReply="HandleReply" />

@code {
private List<string> recipientSuggestions = new()
{
    "alice@example.com", "bob@example.com"
};

private void HandleSend(BptEmailModel model)
{
    // model.From, model.To, model.Subject, model.Body, etc.
}

private void HandleCancel() { }

private void HandleReply(BptEmailModel model)
{
    // model.IsReply == true, fields prefilled
}
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.