Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now