문제

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