Asp classic 无法使用经典asp从godaddy smtp发送电子邮件-快疯了

Asp classic 无法使用经典asp从godaddy smtp发送电子邮件-快疯了,asp-classic,smtp,Asp Classic,Smtp,我真的很挣扎的东西,这是相当基本的,需要一些帮助,因为它不是即将从戈达迪支持 出于某种原因,下面的代码没有发送任何电子邮件 代码似乎是执行的属性,并用大量调试MSG将其弄得千疮百孔,但毫无帮助 Te“发件人”电子邮件地址有效且无任何问题!有什么想法吗?港口 干杯,杰 <% Dim objNewMail Set objNewMail = Server.CreateObject("CDO.Message") objNewMail.From = "info@example.com" obj

我真的很挣扎的东西,这是相当基本的,需要一些帮助,因为它不是即将从戈达迪支持

出于某种原因,下面的代码没有发送任何电子邮件

代码似乎是执行的属性,并用大量调试MSG将其弄得千疮百孔,但毫无帮助

Te“发件人”电子邮件地址有效且无任何问题!有什么想法吗?港口

干杯,杰

<%

Dim objNewMail
Set objNewMail = Server.CreateObject("CDO.Message")

objNewMail.From = "info@example.com" 
objNewMail.To   = "info@example.com" 
objNewMail.Subject = "Interesting property sent by xxx"
objNewMail.TextBody = "Click the following link to see the property :" '& vbcr & vbcr & "http://www.maltawide.eu/default.asp?pid="

' GoDaddy SMTP Settings
'I had to remove the smpt settings as I dont have enough rep to post two links!

Response.Write ("Message sent successfully!")

%>

我不确定您的邮件失败的原因,但下面是GoDaddy托管的工作邮件表单中的代码。您只需构建表单页面以提交脚本中使用的表单字段,或更改脚本中的表单字段名称以匹配现有表单,或用字符串替换表单。表单输入和指定变量值的示例都包含在示例的“创建代码的消息部分”中

<%
Dim strBody
Dim strToAddress
Dim strFromAddress
Dim strReplyAddress
Dim strBlindCC

' Create the message
strBody = Request.Form("Message")
strToAddress = Request.Form("ToAddress")
strFromAddress = Request.Form("FromAddress")
strReplyAddress  = "NoReply@WebSite.com"
strBlindCC = "BlindCC@WebSite.com"  



' Include the schemas
sendUrl="http://schemas.microsoft.com/cdo/configuration/sendusing"
smtpUrl="http://schemas.microsoft.com/cdo/configuration/smtpserver"


' Set the mail server configuration
Set objConfig=CreateObject("CDO.Configuration")
objConfig.Fields.Item(sendUrl)=2 ' cdoSendUsingPort
objConfig.Fields.Item(smtpUrl)="relay-hosting.secureserver.net"
objConfig.Fields.Update


' Send the message
Set objMail=CreateObject("CDO.Message")
Set objMail.Configuration=objConfig

objMail.From=strFromAddress 
objMail.ReplyTo=strReplyAddress

objMail.To=strToAddress

objMail.BCC=strBlindCC

objMail.Subject=strSubject

objMail.HTMLBody = strBody

objMail.Send

%>

恐怕没有欢乐!我已经复制/粘贴了您的文本并替换了变量,但什么都没有!真的很奇怪。你能复制你现在的代码吗?如果你这样做了,我会在我的GODaddy服务器上尝试,看看它为什么会失败。您收到了什么错误消息?谢谢Charles。不确定我是否可以复制当前代码作为注释,因此将编辑原始消息!我已将问题缩小为两个问题:一个是发件人地址(出于某种原因,位于godaddy的info(a)maltawide.eu不起作用),另一个是试图在消息正文中粘贴链接。请看上面的代码。我在这里创建了一个新问题!