我有一個Web應用程序發送電子郵件給我的客戶,就像提醒一樣,我用身份驗證發送郵件,但速度太慢(Office 365 SMTP)。電子郵件遞送緩慢的Web應用程序
我想知道是否有一些提示使用Office 365 SMTP或我必須使用其他SMTP服務。
這是我的代碼發送我的電子郵件:
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpauthenticate") = 1
cdoConfig.Fields.Item(sch & "smtpserver") = MAIL_HOST
cdoConfig.Fields.Item(sch & "smtpserverport") = 25
cdoConfig.Fields.Item(sch & "smtpconnectiontimeout") = 30
cdoConfig.Fields.Item(sch & "sendusername") = MAIL_USERNAME
cdoConfig.Fields.Item(sch & "sendpassword") = MAIL_PASSWORD
cdoConfig.Fields.Item(sch & "smtpusessl") = true
cdoConfig.fields.update
Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
Set cdoConfig = Nothing
cdoMessage.BodyPart.Charset = "iso-8859-1"
cdoMessage.From = MAIL_FROM & "<" & MAIL_FROM_ADDRESS & ">"
cdoMessage.To = MAIL_TO & "<" & MAIL_TO_ADDRESS & ">"
cdoMessage.Subject = MAIL_SUBJECT
cdoMessage.HTMLBody = MAIL_BODY
cdoMessage.Send
Set cdoMessage = Nothing
韓國社交協會