URL Scheme Microsoft Outlook App with Attachment

Padhy, Niladri 21 Reputation points
2022-05-30T11:41:13.49+00:00

Hi
I have a requirement to launch the outlook email compose screen with attachment app from my Xamarin App(iOS & Android). I am able to launch the outlook app open the email compose screen. My question to you is, is it possible to add attachments to the outlook-compose email that is launched from my application, using the outlook schema "ms-outlook://compose?to=test@ssss .com".

Could you please help.

Best Regards,
Niladri

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,902 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,551 Reputation points Microsoft Vendor
    2022-05-31T09:40:57.573+00:00

    Hello,

    is it possible to add attachments to the outlook-compose email that is launched from my application, using the outlook schema "ms-outlook://compose?to=test@ssss .com".

    I have to say, the answer is No.

    We could add body to the email schema string, such as :

     await Launcher.OpenAsync(new Uri("ms-outlook://compose?to=XXXcom&subject=XXX&body= < div style =\"width:450px;height:797px;\"><img src=\"http://your_website.com/your_image.jpg\" style=\"width:100%;height:100%;\"></div>"));  
    

    Then, we will add an image as the attachment. But Apple has been removed for mailto links from iOS 14.6+, refer to https://developer.apple.com/forums/thread/681023

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments