Email.ComposeAsync Method

Definition

Overloads

ComposeAsync()

Opens the default email client to allow the user to send the message.

ComposeAsync(EmailMessage)

Opens the default email client to allow the user to send the message.

ComposeAsync(String, String, String[])

Opens the default email client to allow the user to send the message with the provided subject, body, and recipients.

ComposeAsync()

Opens the default email client to allow the user to send the message.

public:
 static System::Threading::Tasks::Task ^ ComposeAsync();
public static System.Threading.Tasks.Task ComposeAsync ();
static member ComposeAsync : unit -> System.Threading.Tasks.Task
Public Shared Function ComposeAsync () As Task

Returns

A Task object with the current status of the asynchronous operation.

Applies to

ComposeAsync(EmailMessage)

Opens the default email client to allow the user to send the message.

public:
 static System::Threading::Tasks::Task ^ ComposeAsync(Microsoft::Maui::ApplicationModel::Communication::EmailMessage ^ message);
public static System.Threading.Tasks.Task ComposeAsync (Microsoft.Maui.ApplicationModel.Communication.EmailMessage message);
static member ComposeAsync : Microsoft.Maui.ApplicationModel.Communication.EmailMessage -> System.Threading.Tasks.Task
Public Shared Function ComposeAsync (message As EmailMessage) As Task

Parameters

message
EmailMessage

Instance of EmailMessage containing details of the email message to compose.

Returns

A Task object with the current status of the asynchronous operation.

Applies to

ComposeAsync(String, String, String[])

Opens the default email client to allow the user to send the message with the provided subject, body, and recipients.

public:
 static System::Threading::Tasks::Task ^ ComposeAsync(System::String ^ subject, System::String ^ body, ... cli::array <System::String ^> ^ to);
public static System.Threading.Tasks.Task ComposeAsync (string subject, string body, params string[] to);
static member ComposeAsync : string * string * string[] -> System.Threading.Tasks.Task
Public Shared Function ComposeAsync (subject As String, body As String, ParamArray to As String()) As Task

Parameters

subject
String

The email subject.

body
String

The email body.

to
String[]

The email recipients.

Returns

A Task object with the current status of the asynchronous operation.

Applies to