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

Sachin SinghRank #66 · 26.2K reputationPosted Jun 8, 2022, 4:09 AM EDT
Md SarfarajRank #194 · 12.4K reputationPosted Jun 9, 2022, 12:53 AM EDT