相关文章推荐
性感的小摩托  ·  SIP 404 and Microsoft ...·  2 年前    · 
重情义的西红柿  ·  C/C++ Windows ...·  3 年前    · 
In this article I will explain with an example, how to resolve the following error while sending email using MailKit in .Net. MailKit.Net.Smtp.SmtpCommandException: 5.7.8 Username and Password not accepted. Note : For more details on how to send Email using MailKit , please refer my article Send Email using MailKit in ASP.Net WebForms . Error The following error occurs when you try to send email with MailKit using credentials in your .Net application. 5.7.8 Username and Password not accepted. For more information, go to
5.7.8  https://support.google.com/mail/?p=BadCredentials 4-20020a631244000000b0050f85ef50d1sm23290088pgs.26 - gsmtp
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: MailKit.Net.Smtp.SmtpCommandException: 5.7.8 Username and Password not accepted. For more information, go to
5.7.8  https://support.google.com/mail/?p=BadCredentials 4-20020a631244000000b0050f85ef50d1sm23290088pgs.26 – gsmtp