You can compose a new mail using the native User Interface available in Xamarin.Forms (iOS, Android, and UWP). The following code snippets illustrate how to open the default mail service of the platform and attach the PDF to the mail.
Define the following interface in the portable project
Call the ComposeMail method in code behind using the DependencyService when the mail is to be composed, e.g., when a button is clicked.
Implement the interface in Android platform.
Implement the interface in iOS platform. At least, one email account must be enabled on the device.
Implement the interface in UWP platform.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:|