3
連接嘗試失敗,因爲連接的方沒有正確一段時間後響應或已建立的連接失敗,因爲連接的主機未能響應67.69.240.69:25錯誤發送電子郵件vb.net
Dim smtpClient As New SmtpClient()
Dim message As New MailMessage()
Dim fromAddress As New MailAddress("[email protected]")
smtpClient.Host = "smtp10.bellnet.ca"
smtpClient.Credentials = New NetworkCredential("news", "1235!")
smtpClient.Port = "25"
message.From = fromAddress
message.To.Add("[email protected]")
message.Subject = "eyjeyjey afsdf"
message.Body = "Hello from aaaaa"
message.IsBodyHtml = True
smtpClient.EnableSsl = True
smtpClient.Send(message)