Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8893969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:22:49+00:00 2026-06-14T23:22:49+00:00

i am developing an metro application , where i have requirement :- where i

  • 0

i am developing an metro application , where i have requirement :-

where i need to send some information from my app to end users through an email, i am generating the information or content for that email programatically through code.

Firstly thing i worked on is launching mailto app in my application in this way :-

using Windows.System;

//starts the default mail app with a subject, cc, bcc, and body
Launcher.LaunchUriAsync(new Uri("mailto:windows8devs@almostbeta.com?subject=Code Request&cc=kevin@almostbeta.com&bcc=admin@almostbeta.com&body=Hi!"));

Then i discovered that i cannot attach attachements to this mail app programatically
through code if you are launching the mail app in this way.

Secondly, i worked on share contract where i can share content generated from my app to other apps (like mailto app also…)

and i was able to share my content successfully which means :-

using this i am able to attach a file(which i generated through code) to mailto app and if i specify the mail address and send it it works fine and delivered successfully )

But now i discovered that i cannot set the subject or body of the mail app to which i am sharing content , if i am using an share contract to share files.

so my doubt is :-

1) first of all , is there any way that i can set the subject or body of the mail app to which i am sharing content , if i am using an share contract to share files ??

2)Am i missing any other alternative / are there any other possible ways of sending email using metro app ??

3)if not , what is the workaround through which i can achieve my goal ( sending an email through which i can attach file programatically through code and have a body , subject set to it )

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:22:50+00:00Added an answer on June 14, 2026 at 11:22 pm

    Unfortunatelly when using the share contract it’s up to the share target to decide how the values you are setting are going to be used. You don’t have any control over that. As you’ve noticed the built-in mail client doesn’t use the other shared values when you’re adding an attachment.

    The only alternative I can think of is to send the mail directly from your code using SMTP. The downside is that there’s no SmtpClient class in .NET for Windows Store apps and neither could I quickly find another .NET implementation of this functionality that you could use, so it seems you’re on your own here. Also in this case you’d need the user to configure his SMTP server in your application.

    Considering all that the best approach would probably be to take care of sending emails in the online component of your application, i.e. you create a service and host it somewhere. You then send the data for the mail from the app to your service and send the mail from there using the regular .NET SmtpClient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developing C#\XAML metro-ui application. I need some .NET types that doesn't included in
Yesterday I have started developing my first Metro style App using JavaScript. I've used
Developing a project of mine I realize I have a need for some level
I am a new in developing Metro application. And I have a question regarding
I am developing third party IME in metro application (C#) ,I need to understand
I'm developing a Metro-style app (for Windows 8) using C# and XAML. I have
I am developing the metro style application using Win RT. I Need to List
I am developing windows 8 metro app using XAML/C# . I have added scaled
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart
Developing an app where all tabular data is returned as an object. Some cells

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.