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

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.