Solved

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

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

710 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