سؤال

I'm creating an app for windows phones, and I'm trying to create a feedback form using googles smtp. I know the code I'm using is fine but for some reason when I put

using System.Net.Mail;

it displays the following error;

"The type or namespace name 'Mail' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)"

I don't understand why it's doing this as I had to do it a few months back and it worked fine then. Any help is appreciated, thanks in advance!

هل كانت مفيدة؟

المحلول

There are no SMTP libraries available on Windows-Phone 8 thats why you are getting this issue because your project is not allowed to reference the assembly.

You will have to use a 3rd party API to interact with SMTP. SendGrid has been mentioned before.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top