ASP学校学生基地,原创基地,ASP优秀程序,定制程序,学校信息化教育整合系统的开始! 设为首页 添加到收藏夹 25175产品
  首页 > ASP技巧指南
        阅读新闻
 

使用cdonts进行在线邮件发送

[日期:2008-08-06]  来源:25175.com  作者:25175  阅读: 次  [字体: ]
<%
  On Error Resume Next
  Dim email
  Set email=server.CreateObject("cdonts.newmail") powered by 25175.net
  If Not IsObject(email) Then  
  SendMail = Err.Description
 
  End If
  email.BodyFormat =1 'HTML格式,如果是纯文本则是1
  email.MailFormat =0  
  email.From="strystry@163.com"       '用户邮箱
  email.To ="strystry@163.com"     '我的邮箱
  email.Subject ="您好啊"     '邮件标题
  email.Body="25175.com"       '邮件内容
  email.Send
 
  If Err Then
  SendMail = Err.Description
  Else
  SendMail = "OK"
  End If
  Set email = Nothing
 
  if SendMail <> "OK" then
  Response.Write("<script>alert('发送邮件时出错,出错信息:" & chr(10) & chr(13) & SendMail & "');")
  Response.Write("history.back();</script>")
  end if
 
  Response.Write("<script>alert('"&SendMail&"  成功将您反馈的信息发送到我们公司的Email邮箱中!!!');</script>")
  %>


推荐给朋友 】 【 打印此文章 】 【 加入收藏
 

上一篇:抓取到含有干扰元素的数据并通过函数对数据进行处理,获得干干净净的Alexa排名数值
下一篇:生成验证码的实例详细解释及下载

       相关新闻   CDONTS 

       本文评论   所有评论
 
 

点评: 字数
姓名:

.
网站制作 | 广告服务 | 产品价格 | 汇款方式 | 购买指南 | 程序制作 |
技术支持 | idc.25175.net
Copyright © 2005-2008 25175. All Rights Reserved powered by 25175 | 浙ICP备05022281 | 法律顾问:陈淑丽