IMailer

The system mail composer.
public interface IMailer

Properties

CanSendMail

Whether the device can send mail because a Mail account is configured.

Always false in the simulator. Use it to hide or disable a mail action.

Type: bool

bool CanSendMail { get; }

Methods

ComposeAsync

Presents the system mail composer with the given content.

Task<MailResult> ComposeAsync(
  MailContent content)
ParameterSummary
MailContent contentThe recipients, subject, body and attachments.

Returns

  • Task<MailResult>: A task containing what the person did with the composer.

Exceptions