IMailer
The system mail composer.
- Kind: Interface
- Namespace: SkeleKit
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
Methods
ComposeAsync
Presents the system mail composer with the given content.
| Parameter | Summary |
|---|---|
MailContent content | The recipients, subject, body and attachments. |
Returns
Task<MailResult>: A task containing what the person did with the composer.
Exceptions
InvalidOperationException: Thrown if no Mail account is configured, or there is no active view controller to present from.