Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 656 Bytes
layout title category
documentation
Email
Plugins

The Email plugin provides a cross-platform implementation for sending emails.

public interface IMvxComposeEmailTask
{
    void ComposeEmail(string to, string cc, string subject, string body, bool isHtml);
}

The Email plugins is supported on all platforms.

The implementation on Windows Uwp and Wpf is very simplistic - using only 'mailto:' url-open requests.

To send an email you can use:

Mvx.Resolve<IMvxComposeEmailTask>()
.ComposeEmail("me@slodge.com",
              string.Empty,
              "MvvmCross Email
              "I <3 MvvmCross
              false);