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.
<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
}
}