0
這裏是我的代碼(是的,我刪我的電子郵件/密碼)(當你點擊按鈕)SMTP.Send(郵件)錯誤
Dim Mail As New MailMessage
Mail.Subject = "test email"
Mail.To.Add("*****")
Mail.From = New MailAddress("*****") '
Mail.Body = "This is an email!"
Dim SMTP As New SmtpClient("smtp.gmail.com")
SMTP.EnableSsl = True
SMTP.Credentials = New System.Net.NetworkCredential("*****", "*****")
SMTP.Port = 587
SMTP.Send(Mail)
MsgBox("Sent Successfully")
SMTP服務器要求安全連接或客戶端未通過身份驗證。服務器響應是:5.5.1需要身份驗證。瞭解更多(鏈接這不利於)
不能工作第6行的錯誤 – user1797443