 |
网站建设 |
 |
 |
最新客户 |
 |
 |
网站推广 |
 |
 |
推广知识 |
 |
|
 |
建站技术知识 |
 |
|
|
|
|
如何使用发送邮件和上传文件的组件
|
一、邮件发送组件:a) 功能:可使用ASP程序发送邮件b) 使用例程:Set objMail = Server.CreateObject(CDONTS.NewMail) !!!!!!!!!!!!!!!!!!!objMail.To = mymail set To address objMail.From =support@topbiz.cn set From address objMail.Subject =Hi set the subject line objMail.Body = CardAdd set the message content objMail.Send and send the message if err.number<>0 then Response.Write Error:+cstr(err.number)+err.description+chr(10)+对不起,本服务器正在调试,无法发送 Set objMail = Nothing then de 二、文件上传组件: a) 功能:上传文件至指定目录 b) 使用例程set uploadform = Server.CreateObject(SiteGalaxyUpload.Form) if uploadform.ContentDisposition <> form-data thenResponse.Write Bad request format Response.End end if if uploadform.Item(imagefile).MimeType <> image then Response.Write Image expected Response.End end if if uploadform.Item(imagefile).Size > 10240 then Response.Write Image size is limited to 10KB Response.End end if if uploadform(submitdisk) <> then save to disk set fs = server.CreateObject(Scripting.FileSystemObject) fn = server.mappath(/)& \ & fs.GetFileName(uploadform(imagefile).FilePath) set fs = Nothing uploadform(imagefile).SaveAs(fn)
来源:
|
|
|
|
|
|
|
|
 |
|
 |
在线咨询 |
 |
 |
建站服务 |
 |
经济型网站设计套餐 ¥2580 |
企业型网站设计套餐 ¥3980 |
豪华型网站设计套餐 ¥6580 |
商城型网站设计套餐 ¥7580 |
定制型网站设计套餐 ¥面 谈 |
智赢型ABC ¥1580/1980 |
|
|
|
 |
 |
虚拟主机 |
 |
普及型(电信)350元/年 |
经济型(电信)650元/年
|
普及A型(双线)500元/年 |
普及B型(双线)900元/年 |
外贸型(国外) 550元/年
|
企业型(国外) 1050元/年 |
我要订购主机>> |
|
 |
 |
域名注册 |
 |
国际顶级域名.com 100元/年 |
国际顶级域名.net 100元/年 |
国际顶级域名.cc 380元/年 |
国际顶级域名.org 180元/年 |
中国顶级域名.cn 100元/年 |
中国顶级域名.com.cn 100元/年 |
中文域名.中国.公司 280元/年 |
我要注册域>> |
|
 |
|