通过asp代码发送邮件时出错 [英] getting error on sending mail through asp code
本文介绍了通过asp代码发送邮件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想使用asp代码通过我的网站发送邮件,但出现以下异常....
hello all,
I want to send a mail through my website using asp code and i am getting the following exception....
The remote server returned an error: (500) Internal Server Error.
以下是我的asp代码....
the following is my asp code ....
<%
Function emailsub (objFrom,objMessageTextbody, objsubject, recepients)
Dim objMessage
Dim objMessageFrom
Dim objMessageSubject
Set objMessage = CreateObject("CDO.Message")
myMail.Subject=objsubject
myMail.From= objFrom
myMail.To=recepients
myMail.TextBody=objMessageTextbody
myMail.Send
set myMail=nothing
%>
推荐答案
^ ]
您缺少SMTP服务器连接.
请检查链接
http://forums.asp.net/t/971802.aspx [
You are missing SMTP server connection .
Please check the link
http://forums.asp.net/t/971802.aspx[^]
这篇关于通过asp代码发送邮件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文