Plz help I don't know solve this problem, the error msg I uploaded in this image I need help ??? the error description here
Asked
Active
Viewed 49 times
-3
-
Please paste code here, And translate the error message to English if you desire any helpful response from anyone in the community – Arijoon Apr 23 '16 at 16:49
-
You can't use network credentials with a gmail account. The same code that works with outlook will not work with gmail. Go to gmail website and look for sample code at the gmail.com mail site. There was a change between Net 3.5 and Net 4.0 for default settings for NetworkCredentails so code that worked in Net 3.5 doesn't always work with Net4.0. NetworkCredentials uses your login account on your PC which has nothing to do with the credentials for your gmail account. NetworkCredentials only works when the email server like Outlook is using the same password that you use to login on your PC. – jdweng Apr 23 '16 at 16:54
-
Post code and output, not links. – takendarkk Apr 23 '16 at 16:58
-
use cleint.UseDefaultCredentials = false. and settings on following webpage..Port 587 will automatically implement TLS : https://support.google.com/mail/troubleshooter/1692342?hl=en&ref_topic=3410139#ts=2777542 – jdweng Apr 23 '16 at 17:43
1 Answers
0
Error authentication. Try this:
client.UseDefaultCredentials = true;
And check your gmail inbox if you are setting any security.

Thanh Binh
- 40
- 4