HOME > ASP > ASP Forum > CDO.Message ครับผม เจอปัญหา The server encountered an internal error or misconfiguration and was unable to complete your request.
CDO.Message ครับผม เจอปัญหา The server encountered an internal error or misconfiguration and was unable to complete your request.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
ด้วยครับ
Code:
<% Option Explicit %>
<html>
<head>
<title>ThaiCreate.Com ASP CDO.Message Send Mail</title>
</head>
<body>
<%
Dim myMail,HTML
Set myMail = Server.CreateObject("CDO.Message")
'*** If Using Remote Server ***'
'Dim cdoConfig
'Set cdoConfig = myMail.Configuration
'With cdoConfig.Fields
' .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
' .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "127.0.0.1"
' .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
' .Update
'End With
myMail.From = "[email protected]"
myMail.To = "[email protected]"
myMail.Subject = "My Subject"
myMail.TextBody = "My Body & My Description"