I have created the code to send email from C# through Gmail. It works in my machine after I enabled "Less secure app access" in the email which i sent