云网互动影视6.0--会员邮件通知管理

<% '=================================================================================================================== '软件名称：云网影视管理系统 'Copyright (C) 2002-2007 ywnt.net All rights reserved. '产品咨询QQ：489234,2813712 '程序版权：云网互动科技有限公司 '程序开发：云网互动科技有限公司 '官方网站：http://www.ywnt.net '郑重声明: ' 1、免费版本请在程序首页保留版权信息，并做上本站LOGO友情连接,商业版本无此要求; ' 2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息； ' 3、云网互动科技有限公司保留此软件的法律追究权利 '=================================================================================================================== Call CheckLogin("UsersEmail") frommail = NoSqlHack(Trim(Request.Form("frommail"))) tomail = NoSqlHack(Trim(Request.Form("tomail"))) mailsubject = NoSqlHack(Trim(Request.Form("mailsubject"))) mailbody = NoSqlHack(Trim(Request.Form("mailbody"))) sub formcheck() if mailsubject="" then call Admin_ShowErr("
- 邮件标题不能为空！
","javascript:history.go(-1);",0) end if if mailbody="" then call Admin_ShowErr("
- 邮件内容不能为空！
","javascript:history.go(-1);",0) end if end sub sub SendSave() if tomail="" then call Admin_ShowErr("
- 收件人不能为空！
","javascript:history.go(-1);",0) end if call formcheck() Set JMail = Server.CreateObject("JMail.Message") JMail.MailServerUserName = GetConfig("MailUser") JMail.MailServerPassword = GetConfig("MailPassword") JMail.Charset ="gb2312" JMail.ContentType = "text/html" JMail.from = frommail JMail.AddRecipient(""&tomail&"") JMail.Subject = mailsubject JMail.Body = mailbody JMail.Priority = 3 JMail.Send(GetConfig("MailServer")) JMail.Close() Set JMail=nothing Call AddLog("发送用户邮件"&Request.Form("tomail"),7) call Admin_ShowErr("
- 发送用户邮件成功！
","Admin_UsersEmail.asp",1) end sub sub RepeatedSave() call formcheck() Set JMail = Server.CreateObject("JMail.Message") JMail.MailServerUserName = GetConfig("MailUser") JMail.MailServerPassword = GetConfig("MailPassword") JMail.Charset ="gb2312" JMail.ContentType = "text/html" JMail.from = GetConfig("MailUser") sql="select UsersEmail from YWNT_TMS_Users" set rs=conn.execute(sql) do while not rs.eof JMail.AddRecipient(""&rs("UsersEmail")&"") RS.MoveNext Loop rs.close JMail.Subject = mailsubject JMail.Body = mailbody JMail.Priority = 3 JMail.Send(GetConfig("MailServer")) JMail.Close() Set JMail=nothing Call AddLog("群发用户邮件",7) call Admin_ShowErr("
- 群发用户邮件成功！
","Admin_UsersEmail.asp",1) end sub%>

会员邮件通知管理
会员邮件发送 | 会员邮件群发

<%Action=Trim(request("Action")) Select Case Action Case "Repeated" call Repeated() Case "RepeatedSave" call RepeatedSave() Case "SendSave" call SendSave() Case else call Send() End Select sub Send()%>

邮件发送
发送人邮箱： | " size="40">
收件人邮箱： |
邮件标题： |
邮件内容： |

<%end sub sub Repeated()%>

群发邮件给所有会员
发送人邮箱： | " size="40">
邮件标题： |
邮件内容： |

<%end sub call connclose()%>