我想通過傳統的ASP發送電子郵件,但它給了我下面的錯誤。通過發送電子郵件通過經典的ASP錯誤:
CDO.Message.1 error '80040213' The transport failed to connect to the server. /hotemp/regnew.asp, line 507
最初,它是工作的罰款,突然它給上述錯誤。我用Google搜索,但沒有幫助。有關如何克服這一點的任何建議。謝謝
我下面的代碼:
<%
Set Mail = CreateObject("CDO.Message")
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="smtp.gmail.com"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="[email protected]"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="password"
Mail.Configuration.Fields.Update
Mail.Subject="Sending via classic asp"
Mail.From="[email protected]"
Mail.To="[email protected]"
Mail.TextBody="please fill the form"
Mail.Send ` line 507
Set Mail = Nothing
%>
根據谷歌的說法,smtp.gmail.com有一個限制:「爲了打擊垃圾郵件並防止濫用,Google會暫時禁用您的帳戶,如果您向超過500個收件人發送郵件或發送大量電子郵件無法投遞的消息...您的帳戶應在24小時內重新啓用。「 – johna
我在24小時內從未寄過超過30封電子郵件或40封電子郵件。 –