0
我嘗試使用Gmail發送SMTP服務器的電子郵件和磨片採用不同的帳戶來測試我得到「451 4.7.1本地配置錯誤,請稍後再試」
Dim myMail As New MailMessage
myMail.To.Add(New MailAddress("[email protected]"))
myMail.Subject = "subject"
myMail.From = New MailAddress("[email protected]")
myMail.Body = "the message"
Dim mySMTP As New SmtpClient()
mySMTP.Host ="smtp.google.com"
mySMTP.Port = 587
mySMTP.DeliveryMethod = SmtpDeliveryMethod.Network
mySMTP.Credentials = New System.Net.NetworkCredential("[email protected]", "mygmailpass")
mySMTP.EnableSsl = true
mySMTP.Timeout = 30000
mySMTP.Send(myMail)
的調幅甚至得到這個錯誤錯誤越來越
451 4.7.1 Local configuration error, please try again later
什麼原因導致此錯誤。我的用戶名和密碼正確
我只是接受了一個答案,我選擇了cdo而不是 – Smith 2012-02-12 16:40:57