<%action=Trim(Request.QueryString("action")) if action="send" then if request.form("content")="" then response.Write("") response.End() else end if allusername=Trim(Request.Form("allusername")) if allusername="1" then exec="select * from aspxweb_user" set rs=server.createobject("adodb.recordset") rs.open exec,conn,1,1 do while not rs.eof useremail=useremail&rs("email")&"," rs.movenext loop rs.close jieshouren=","&useremail else jieshouren=","&request.form("toemail")&"," end if if jieshouren="," or jieshouren=",," then response.Write("") response.End() else end if '调用此Sub的例子 Dim strSubject,strEmail,strMailAdress,strSender,strContent,strFromer strSubject = request.form("title") '邮件标题 strContent = request.form("content") '邮件内容 strEmail = jieshouren '收件人邮件地址,多个收件人中间请用“,”隔开。 strFromer = request.form("MailServerUserName1") '发件人的邮件地址"qq363685855@163.com" strMailAddress = request.form("MailServer") '发件服务器的地址 strSender = request.form("name") '发件人姓名 password = request.form("MailServerPassWord1") '发件人登陆密码 flag = true '是否检测e-mail是否发送成功,true为检测,false为不检测。 filepath = request.form("filepath") '附件发送地址,为服务器的相对路径。是否发送附件,为空值时不发送,否则发送。多个附件中间请用“,”隔开。 Call Sendemail(strSubject,strMailaddress,strEmail,strSender,strContent,strFromer,password,flag,filepath) else end if %>
 
 
      台湾乐居网,是一个专门提供大陆朋友来台所需一切相关服务的信息平台,所有一切有关台湾房地产,台湾自由行,台湾旅游,台湾民宿饭店,台湾租车或车行,台湾旅行,台湾生活,台湾好吃好玩,台湾美容保养及台湾的食衣住行育乐等等,各式各样的服务及信息,在这里您都可以快速找到。

   

联系人:

联系电话:

-- 分机:

联系地址:

E-mail:

联系地址:

公司名称:

联络人:

联系传真:

部门

  -- 职位:

留言主旨

 

留言内容

  

<% Function Sendemail(subject,mailaddress,email,sender,content,fromer,password,flag,filepath) Dim JMail,contentId Set jmail = Server.CreateObject("JMAIL.Message") '建立发送邮件的对象 jmail.silent = true JMail.Charset = "gb2312" ' JMail.ISOEncodeHeaders = False JMail.From = fromer ' 发送者地址 JMail.FromName = sender ' 发送者姓名 JMail.Subject = subject ' 邮件主题 JMail.MailServerUserName = strFromer JMail.MailServerPassword = password ' 身份验证的密码 JMail.Priority = 3 JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR") FriendEmail=email '接收人邮件地址 Dim S,V,N,Q S=FriendEmail V=Split(S,",") N=UBound(V) For i=1 To N-1 JMail.AddRecipient(V(i)) Next if filepath<>"" then Dim S1,V1,N1,Q1 S1=","&filepath&"," V1=Split(S1,",") N1=UBound(V1) For i1=1 To N1-1 contentId = JMail.AddAttachment (Server.MapPath(V1(i1)),True) Next else end if MailBody = MailBody & "" MailBody = MailBody & content MailBody = MailBody & "" JMail.HTMLBody = MailBody JMail.Body = content Dim flag2 flag2=JMail.Send(""&mailaddress&"") if flag=true then if flag2=true then response.Write("") elseif flag2=false then response.Write("") else response.Write("") end if else end if ' 关闭并清除对象 JMail.Close() Set JMail = Nothing End Function %>
 

台湾乐居网      公司名称:硕辰投资发展有限公司
电话:+886-6-2562378
         +86-13621751117
传真:+886-6-2562395
QQ:1373077780
Mail: service@1zhappy.com   /  1373077780@qq.com  /  
台湾乐居网博客