Solved

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

Posted on 2014-11-04
1
205 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 30

Accepted Solution

by:
MlandaT earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…

735 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