ASP版CDONTS和Jmail發郵件例項

2021-04-13 00:46:27 字數 1029 閱讀 4450

jmail:

<%

server.scripttimeout=1000000

dim jmail

set jmail = server.createobject("jmail.message")

**tpserver = "**tp.???.net" '支援外發的郵件伺服器

**tpuser = "???@???.net" '你的郵箱使用者名稱

**tppwd = "123456789" '你的郵箱密碼

jmail.silent = true

jmail.charset = "gb2312"

jmail.logging = true

jmail.priority = 3

jmail.from = "[email protected]"

jmail.fromname = "威馳設計開發工作組"

jmail.replyto ="[email protected]"

jmail.addrecipient("[email protected]")

jmail.subject = "威馳會員註冊成功確認信"& vbcrlf & vbcrlf & tbody

jmail.body = "祝賀你成功地註冊成為我們的會員!"

jmail.mailserverusername = **tpuser

jmail.mailserverpassword = **tppwd

isgo = jmail.send(**tpserver)

if isgo then

response.write("提交成功!謝謝你的支援。")

response.write("

"&jmail.log&"
")

else

response.write("

"&jmail.log&"
")

end if

jmail.close()

set jmail = nothing

%>

ASP版CDONTS和Jmail發郵件例項

jmail server.scripttimeout 1000000 dim jmail set jmail server.createobject jmail.message smtpserver smtp.net 支援外發的郵件伺服器 smtpuser net 你的郵箱使用者名稱 smtppwd...

利用CDONTS傳送郵件的ASP函式

last updated by recon on 05 14 2001 on error resume next 利用cdonts元件在win2k上傳送郵件 傳送普通郵件 sendmail admin ny.com iamchn 263.net normal mail please check th...

asp 存貯過程 SQL版asp呼叫儲存過程

存貯過程 sql樣版 今天發個sql存貯過程給大家認識 複製 如下 create procedure login verify community id int,拿值 username varchar 20 password varchar 40 result tinyint output as s...