[p]jmail.html [br] [br] [br]
信息反饋表 [br]
[br] [br][br] [br]
[br][br] [br] [br][br][br][br]send.asp [br] [br] [br]
發送表單 [br] [br][br]<% [br]name = request.form ("name") [br]email= request.form ("email") [br]address= request.form ("address") [br]mailsubject= request.form ("mailsubject") [br]text1 = request.form ("text1") [br]text2 = request.form ("text2") [br]text3 = request.form ("text3") [br]%> [br][br]<% [br]' 創建jmail對象: [br]set jmail = server.createobject("jmail.smtpmail") [br][br]' 設置發送郵件服務器(smtp): [br]jmail.serveraddress = "mail.abc.com:25" [br][br]' 發件人的信箱: [br]jmail.sender = email [br][br]' 郵件標題: [br]jmail.subject = mailsubject [br][br]' 設置郵件的收件人信箱 [br]jmail.addrecipient "abc@abc.com" [br][br]' 下面就是填表在內容區填寫的內容,&是連接符,vbcrlf表示換行回車: [br][br]mess = mess & "---------------webmail表單開始-------------------" & vbcrlf [br]mess = mess & "留言人姓名:" & name & vbcrlf [br]mess = mess & "留言人郵件:" & email & vbcrlf [br]mess = mess & "留言人地址:" & address & vbcrlf [br]mess = mess & "留言內容一:" & text1 & vbcrlf [br]mess = mess & "留言內容二:" & text2 & vbcrlf [br]mess = mess & "留言內容三:" & text3 & vbcrlf [br]mess = mess & "---------------webmail表單結束-------------------" [br]jmail.body = mess [br][br]' 設置郵件的優先級(1-5,1為最高): [br]jmail.priority = 1 [br][br]' 執行發送任務: [br]jmail.execute [br]%> [br][br][br]您遞交郵件已順利發出,感謝您的意見和建議! [br] [br] [/p]
該文章在 2010/7/3 10:52:03 編輯過