In this article I will explain with an example, how to resolve the following error while sending email using MailKit library in .Net.
MailKit.Net.Smtp.SmtpCommandException: sender@gmail.com No such user here
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.
<sender@gmail.com> No such user here
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: <sender@gmail.com> No such user here
 
.Net MailKit Error: sender@gmail.com No such user here
 
 
Solution
This error means that the Email Address (Username) supplied does not exist on the SMTP Server and hence it is rejected by the Server.