We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to attach the PDF document loaded in PDF viewer control to default mail service in Xamarin.Forms platform?

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.

Portable

Define the following interface in the portable project

C#

 

Call the ComposeMail method in code behind using the DependencyService when the mail is to be composed, e.g., when a button is clicked.

C#

 

Android

Implement the interface in Android platform.

C#

 

iOS

Implement the interface in iOS platform. At least, one email account must be enabled on the device.

C#

 

UWP

Implement the interface in UWP platform.

C#

 

Sample link:

http://www.syncfusion.com/downloads/support/directtrac/general/ze/GETTIN~1-794587130

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
8709 04/17/2018 04/17/2018 Xamarin.iOS SfPdfViewer 4.5.1
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.