ASP+SMTP完成郵件群發功能

來源:互聯網
上載者:User
-->
<meta http-equiv="Content-Language" content="zh-cn">
<TITLE>中國勁網Web(ASP+STMP)郵件群發系統 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是接收人長度限制
imail=1001
'設定發信密碼
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線上視聽:http://www.5790.com"
pass=Request("pass")
if pass<>mailpass then error="請輸入正確的發信密碼!"
if instr(smtpmail,"@")=0 or smtpmail="" then error="發信E-mail地址填寫錯誤!"
if instr(email,"@")=0 or email="" then error="收信E-mail地址填寫錯誤!"
smail=Split(email,"@")
ubmail=UBound(smail)
if int(ubmail)>int(imail) then error="收信E_mail超出限制!限制一次性發送"&imail&"個郵箱地址"
if error<>"" then
Response.Write(error&"....<a href=?>返回</a>")
Response.End
Else
if Request("amail")="yes" then
mailaddress=email
Set MailObject = Server.CreateObject("CDONTS.NewMail")
MailObject.Send smtpmail,mailaddress,mailtopic,body
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.