Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cannot reference system.net.mail in VS Express For Windows Phones

Posted on 2014-11-04
1
Medium Priority
?
233 Views
Last Modified: 2014-11-05
Hi Experts, as the heading suggests, I have Visual Studio 2012 for Windows Phone.    I'm trying to send a simple mail using smtpclient.   I can reference system.net but it does not show mail in the list.   I have added the System reference but not succeeded.   Any ideas?
0
Comment
Question by:PNRT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 31

Accepted Solution

by:
MlandaT earned 2000 total points
ID: 40423497
There are no SMTP APIs available on Windows Phone.

Use Windows.ApplicationModel.Email.EmailMessage as shown here (Sending an email message Windows Phone Store)

Alternatively, you can use Microsoft.Phone.Tasks.EmailComposeTask to compose an e-mail using the inbuilt mail client. See example here (How to use the email compose task for Windows Phone 8)
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question