asp常用函式

2021-03-31 08:57:01 字數 758 閱讀 4276

set jmail = server.createobject("jmail.**tpmail") '建立乙個jmail物件

jmail.silent = true 'jmail不會丟擲例外錯誤,返回的值為false跟true

jmail.logging = true '啟用使用日誌

jmail.charset = "gb2312" '郵件文字的**為簡體中文

jmail.contenttype = "text/html" '郵件的格式為html的

jmail.serveraddress = "server address" '傳送郵件的伺服器

jmail.addrecipient email '郵件的收件人

jmail.sendername = "sendername" '郵件傳送者的姓名

jmail.sender = "email address" '郵件傳送者的郵件位址

jmail.priority = 1 '郵件的緊急程式,1 為最快,5 為最慢, 3 為預設值

jmail.subject = "mail subject" '郵件的標題

jmail.body = "mail body" '郵件的內容

jmail.addrecipientbcc email '密件收件人的位址

jmail.addrecipientcc email '郵件抄送者的位址

jmail.execute() '執行郵件傳送

jmail.close '關閉郵件物件

asp常用函式

array function 返回乙個陣列 syntax array list arguments 字元,數字均可 example dim myarray for i 1 to 7 redim preserve myarray i myarray i weekdayname i next resul...

Asp 常用函式

textarea顯示用 function htmlencode1 fstring if fstring and not isnull fstring then fstring replace fstring,fstring replace fstring,fstring replace fstrin...

asp常用函式

array function 返回乙個陣列 syntax array list arguments 字元,數字均可 example dim myarray for i 1 to 7 redim preserve myarray i myarray i weekdayname i next resul...