ASP + SMTP complete mail group function

Source: Internet
Author: User
-->
<Meta http-equiv = "Content-Language" content = "zh-cn">
<TITLE> China Jinfeng Web (ASP + STMP) mass mailing system version 2004.11.28 </TITLE>
<Style>
<! --
Body {color: #000000; text-decoration: none; font-family:; font-size: 10pt;
Letter-spacing: 1pt; font-weight: bold}
Table {font-family:; font-size: 10pt; text-decoration: none; color: #000000;
Letter-spacing: 1pt; font-weight: bold}
-->
</Style>
<%
'Imail is the recipient length limit
Imail= 1001
'Set the mail password
Mailpass = "www.5790.com"
Post = Request ("post ")
Response. Cookies ("text") = Request ("text ")
Response. Cookies ("title") = Request ("title ")
If post = "openmail" then
Smtpmail = Request ("smtpmail ")
On error resume next
Email = Replace (Request ("email"), vbCrlf ,",")
Mailtopic = Request ("title ")
Body = Request ("text") & "<br> MTV online audio and video: http://www.5790.com"
Pass = Request ("pass ")
If pass <> mailpass then error = "enter the correct sending password! "
If instr (smtpmail, "@") = 0 or smtpmail = "" then error = "incorrect email sending address! "
If instr (email, "@") = 0 or email = "" then error = "incorrect email address! "
Smail = Split (email ,"@")
Ubmail = UBound (smail)
If int (ubmail)> int (imail) then error = "receiving E_mail exceeds the limit! Restrict one-time sending of "& imail &" email addresses"
If error <> "" then
Response. Write (error & "... <a href =?> Return </a> ")
Response. End
Else
If Request ("amail") = "yes" then
Mailaddress = email
Set MailObject = Server. CreateObject ("CDONTS. NewMail ")
MailObject. Send smtpmail, mailaddress, mailtopic, body
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.