asp使用Jmail組件發(fā)送信息到指定郵箱
當(dāng)前位置:點(diǎn)晴教程→知識(shí)管理交流
→『 技術(shù)文檔交流 』
jmail.html send.asp <% name = request.form ("name") email= request.form ("email") address= request.form ("address") mailsubject= request.form ("mailsubject") text1 = request.form ("text1") text2 = request.form ("text2") text3 = request.form ("text3") %> <% ' 創(chuàng)建jmail對(duì)象: set jmail = server.createobject("jmail.smtpmail") ' 設(shè)置發(fā)送郵件服務(wù)器(smtp): jmail.serveraddress = "mail.abc.com:25" ' 發(fā)件人的信箱: jmail.sender = email ' 郵件標(biāo)題: jmail.subject = mailsubject ' 設(shè)置郵件的收件人信箱 jmail.addrecipient "abc@abc.com" ' 下面就是填表在內(nèi)容區(qū)填寫的內(nèi)容,&是連接符,vbcrlf表示換行回車: mess = mess & "---------------webmail表單開始-------------------" & vbcrlf mess = mess & "留言人姓名:" & name & vbcrlf mess = mess & "留言人郵件:" & email & vbcrlf mess = mess & "留言人地址:" & address & vbcrlf mess = mess & "留言內(nèi)容一:" & text1 & vbcrlf mess = mess & "留言內(nèi)容二:" & text2 & vbcrlf mess = mess & "留言內(nèi)容三:" & text3 & vbcrlf mess = mess & "---------------webmail表單結(jié)束-------------------" jmail.body = mess ' 設(shè)置郵件的優(yōu)先級(jí)(1-5,1為最高): jmail.priority = 1 ' 執(zhí)行發(fā)送任務(wù): jmail.execute %> 您遞交郵件已順利發(fā)出,感謝您的意見和建議! 該文章在 2010/7/3 10:52:03 編輯過 |
關(guān)鍵字查詢
相關(guān)文章
正在查詢... |