CDONTS本机,和远程虚拟主机问题

coolyangxj 2003-12-13 08:39:39
今天终于在本机收到了自己用asp发给自己的邮件
但是邮件内容为,我的mail.body
变成了附件

在我的虚拟主机上抱错
"没有权限"

请问如何解决?
谢谢



邮件内容:
This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

sellsy@163.com


源代码
<META content="text/html;charset=gb2312" http-equiv="Content-Type">
<%
on error resume next
Set MailObject=Server.CreateObject("CDONTS.NewMail")
MailObject.Send "coolyangxj@163.com","sellsy@163.com","Mysubject","Mytext"
Set MailObject=nothing
response.write err.description
%>
...全文
37 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
coolyangxj 2003-12-13
  • 打赏
  • 举报
回复
第一个问题解决了,还有就是服务器的权限问题了?
谢谢

源代码:
<META content="text/html;charset=gb2312" http-equiv="Content-Type">
<%
on error resume next
Set cdomail=Server.CreateObject("CDONTS.NewMail")

cdomail.Subject = "邮件标题" '邮件标题
cdomail.From = "postmaster@2000server" '发件人的地址
cdomail.To = "coolyangxj@163.com" '收件人的地址
cdomail.Body = "邮件的内容" '邮件的内容
cdomail.Send '执行发送

'cdomail.Send "","","Mysubject","Mytext"
Set cdomail=nothing
response.write err.description
%>

28,405

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧