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.
Syncfusion Feedback

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.


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.



Sample link:


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

Warning Icon 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.Close Icon