- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
使用cdo组件发送邮件(Send mail using the CDO component)
使用cdo组件发送邮件(Send mail using the CDO component)
It is not difficult to send mail in Active Server Pages, and the required condition is to use the CDO component (Collaborative Data Object), which is NT Option Pack 4 after installation. To confirm that the CDO component is properly installed on your machine, select Start / control panel / add and delete program /NT Option Pack 4 to see if the SMTP service is installed. If it is not installed, then there will be an error when running the code shown below (error information is similar to Invaild class string).
The code for creating a CDO component instance in ASP is as follows:
Dim objCDO
Set objCDO = Server.CreateObject (CDONTS.NewMail)
%
Mail can now be sent! The CDONTS.NewMail instance has some obvious and simple properties and methods. Heres a look at the relevant code:
This, code, assumes, the, above, CDO
instantiation, code, is, included
ObjCDO.To = mitchell@4
ObjCDO.From = gates@
ObjCDO.clearcase/ target=, _blank cc =, , jobs@
Dim txtSubject
TxtSubject = Hello, Scott, were, your, advice, on, some, programming, issues., Please, come, to, Redmond, wanting, at, your, earliest,, convenience, for, We, a, very, check, fat!
ObjCDO.Subject = Attn:, Scott, we, need, you!!
ObjCDO.Body = txtSubject
ObjCDO.Send
%
Thats all thats all. Several properties of a component are simple and practical. After executing the above code, an email will be sent from from gates@ to mitchelL@4 and copied to barksdale@ and jobs@. The subject is a simple, regular message. Finally, send the mail by using the send method (dont forget to execute this method, otherwise the message will not be sent out).
The capabilities of the CDO component are quite powerful! You can use it to send attachments, mail to mailing lists, and send schedules (just as in Outlook).
Click on this article to see how to sell and sell via private Email. This article details the problem of better using CDO components.
Lets look at some of the other features of the CDO compo
您可能关注的文档
- windows2003优化设置(Windows2003 optimization settings).doc
- win7 java环境变量配置(Win7 Java environment variable configuration).doc
- windows优化大师使用方法(Windows optimization master method of use).doc
- win7中可关闭的服务项(The closed service item in win7).doc
- windows光盘菜单制作教程(Windows CD menu tutorial).doc
- windows睡眠休眠(Windows sleep dormancy).doc
- wm6.5 rom修改教程(WM6.5 ROM modify tutorial).doc
- wm6的系统程序,命令参数,启动项,进程列表大全(Wm6 system procedures, command parameters, startup items, process list Daquan).doc
- word使用技巧)(Word usage skills)).doc
- wifi使用常识(WiFi uses common sense).doc
- 使用冰箱注意事项2(Use the refrigerator 2).doc
- 侍道3攻略(Road 3 Raiders).doc
- 供应商的管理技巧(Supplier management skills).doc
- 侯显生平研究(A study of Hou Xian's life).doc
- 侦探常识63698(Detective common sense 63698).doc
- 保健品多品牌经营的传播整合(Communication and integration of health care products and multi brand management).doc
- 保健饮品营销策略批判(上)(Criticism on marketing strategy of health beverage (Part I)).doc
- 保险代理人的委托代理理论研究(Research on principal agent theory of insurance agent).doc
- 保险术语 6(Insurance terminology 6).doc
- 保健偏方(Health folk prescription).doc
文档评论(0)