人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

asp運用jmail4.3的模塊

asp運用jmail4.3的模塊

更新時間:2022-08-16 文章作者:未知 信息來源:網絡 閱讀次數:

把程序放到一個文件中,然后包含再call就可以了。(JMAIL4.3)

<%'警告函數
sub w_msg(message,w_to,w_link)
'message是你要彈出的警告信息,w_to=1表示自動后退一頁,當w_to<>1時w_link表示要跳轉的頁面
if w_to="1" then
%>
<script language="javascript">
<!--
function Index(){ window.alert('<%=message%>');history.back(-1)}
Index();
-->
</script>
<%else%>
<script language="javascript">
<!--
function Index(){ window.alert('<%=message%>');window.location="<%=w_link%>"}
Index();
-->
</script>
<%end if
end sub%>
<%
sub sendmail(mailtitle,mailtext,mailaddress,mailcc,mailbcc,attachment,mailserver)
if mailtitle="" then
mailtitle="系統測試郵件"
end if
if mailtext="" then
mailtext="Just a test"
end if
if mailaddress="" then
call w_msg("郵件地址不能為空","1","")
end if
if mailserver="" then
mailserver="smtp.163.com"
end if
set msg=server.createobject("JMail.Message")
msg.silent = true
msg.logging = true
msg.Charset="GB2312"
msg.ContentType = "text/html"
msg.MailServerUserName="yourusername"
msg.MailServerPassword="yourpassword"
msg.From="youremail"
msg.FromName="dorryyang"
mailaddress_s=split(mailaddress,",")   ' 郵件地址用,格開
for i=0 to ubound(mailaddress_s)
msg.AddRecipient trim(mailaddress_s(i))
next
if mailcc<>"" then
mailcc_s=split(mailcc,",")
for i=0 to ubound(mailcc_s)
msg.AddRecipientCC trim(mailcc_s(i))
next
end if
if mailbcc<>"" then
mailbcc_s=split(mailbcc,",")
for i=0 to ubound(mailbcc_s)
msg.AddRecipientBCC trim(mailbcc_s(i))
next
end if
if attachment<>"" then
msg.AddAttachment(attachment)  'attachment寫附件地址
end if
msg.Subject=mailtitle
msg.HTMLBody=mailtext
msg.Send(mailserver)
msg.close
set msg=nothing
call w_msg("發送成功","1","")
end sub
%>


溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 张家口市| 潢川县| 乌鲁木齐市| 永胜县| 介休市| 辽源市| 山丹县| 定安县| 瑞昌市| 喀喇沁旗| 波密县| 民勤县| 杭州市| 固镇县| 绥江县| 顺平县| 且末县| 肃宁县| 洞头县| 招远市| 洛扎县| 苍南县| 曲阜市| 宁德市| 涡阳县| 镇赉县| 炉霍县| 望江县| 绥中县| 镇赉县| 巴东县| 尚义县| 黄平县| 营山县| 阜平县| 马尔康县| 申扎县| 鄂伦春自治旗| 茂名市| 黑河市| 黎城县|