I\'m developing a mail client for a school project. I have managed to send e-mails using the SmtpClient
in C#. This works perfectly with any server but it doesn
You need to enable 2-Step Verification in your gmail account and create an app password (https://support.google.com/accounts/answer/185833?hl=en). Once you replace your password with the new app password, it should work.
Credentials = new System.Net.NetworkCredential("your email address", "your app password");