Some of the previously collected information---a mailing list using CDO ASP program (admin side)

Source: Internet
Author: User
Tags servervariables
This is the entire mailing list program server, run by the manager:
FileName mailadmin.asp:
<%
' When using this code, please send all mailing lists (suffix lst) files and
The ' Letter file (suffix ltr) is placed in the root directory Basedir and guarantees write permission to the directory
Dim Debug
debug = False
BASEDIR = Server.MapPath ("/tmp/maillist")
Forreading = 1
ForWriting = 2
ForAppending = 8
' Separator character
delimiter = "|"
' URL Note For this code is not a path
Script_url= "Mailadmin.asp"
' The CDO NTS used in the code to send mail
' $DEFAULT _email is the variable to hold the default return address (can be modified as appropriate)
Default_email= "Yourname@yourmailserver"
CPR = ""
If StrComp (Request.ServerVariables ("Request_method"), "POST", vbTextCompare) <> 0 and _
StrComp (Request.ServerVariables ("query_string"), "", vbTextCompare) = 0 Then
Query_form
Response.End
End If
If StrComp (Request.ServerVariables ("Request_method"), "POST", vbTextCompare) = 0 and _
Request.Form ("action") = "LIST" Then
Get_list
Response.End
End If
If StrComp (Request.ServerVariables ("Request_method"), "POST", vbTextCompare) = 0 and _
Request.Form ("action") = "SENDMAIL" Then
Send_mail
Response.End
End If
If StrComp (Request.ServerVariables ("Request_method"), "POST", vbTextCompare) = 0 and _
Request.Form ("action") = "Postletter" Then
Post_letter
Response.End
End If
If StrComp (Request.ServerVariables ("Request_method"), "POST", vbTextCompare) = 0 and _
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.