How to send a mail with using auth?
问题 I'm using smtp package of golang to send the mail from localhost to the given mail address. But there is a problem I'm providing my email and password for it but it will show me the error of 535 5.7.8 Username and Password not accepted. Learn more at 5.7.8 https://support.google.com/mail/?p=BadCredentials p24sm107930499pfk.155 - gsmtp they want that I have to allow less secure app to use my account But I don't want to allow that I tried a small piece of code for it. Tried Example1:- // Set up