के साथ अमान्य है मैं एएसपी क्लासिक का उपयोग करके एक ईमेल भेजने की कोशिश कर रहा हूं, और मुझे SMTP कॉन्फ़िगरेशन में समस्या हो रही है।एसएमटीपी कॉन्फ़िगरेशन SendUsing कॉन्फ़िगरेशन मान एएसपी-क्लासिक
त्रुटि:
CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid.
संहिता (ईमेल के लिए ही):
Set objMsg = Server.CreateObject("CDO.Message")
objMsg.From = "[email protected]"
objMsg.To = "[email protected]"
objMsg.Subject = "Procurement Ally Update"
objMsg.TextBody = strBody
कोड मैं (पीटी 1) के साथ कॉन्फ़िगर करने की कोशिश की:
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "smtpserver") = "127.0.0.1"
.update
End With
कि काम नहीं किया, इसलिए मैंने कोशिश की:
objMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
objMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMsg.Configuration.Fields.Update
यह भी काम नहीं किया।
(हाँ, मैं यह नहीं दिखाया जा सका, लेकिन अंत में वहाँ objMsg.Send
के लिए एक कॉल है)
जहां तक मेरा बता सकते हैं, स्थानीय बक्से SMTP सेवा चल रहा है और अपना कर्तव्य करने के लिए तैयार कर रहा है।
क्या कोई मदद कर सकता है?