Already setup yahoo email with 2step authentication and created app password but email still failure send ?
Dim smtp As New System.Net.Mail.SmtpClient
smtp.Host = "mail.yahoo.com"
smtp.Credentials = New System.Net.NetworkCredential("[email protected]", "passwordyahoo")
smtp.UseDefaultCredentials = False
smtp.EnableSsl = True
smtp.Port = 465
Which code is wrong and how to fix this problem