使用jmail組件上傳
作者:域名頻道來源:互聯網發布時間:2006-1-13 6:59:00瀏覽:
代碼如下:
<%
Set msg = Server.CreateObject("JMail.Message")
msg.silent = true
msg.Logging = true
msg.Charset = "gb2312"
msg.MailServerUserName = "..." 輸入smtp服務器驗證登陸名
msg.MailServerPassword = "..." 輸入smtp服務器驗證密碼
msg.From = "...@..." 發件人
msg.FromName = FromName
msg.AddRecipient "...@...","...@..." 收件人
msg.Subject = "test" 主題
msg.Body = "this is body!" 正文
msg.Send ("smtp Server Name") smtp服務器地址,本司地址為218.5.72.50
set msg = nothing
%>
<%
Set msg = Server.CreateObject("JMail.Message")
msg.silent = true
msg.Logging = true
msg.Charset = "gb2312"
msg.MailServerUserName = "..." 輸入smtp
msg.MailServerPassword = "..." 輸入smtp
msg.From = "...@..." 發件人
msg.FromName = FromName
msg.AddRecipient "...@...","...@..." 收件人
msg.Subject = "test" 主題
msg.Body = "this is body!" 正文
msg.Send ("smtp Server Name") smtp
set msg = nothing
%>
- 前一篇:關于IIS連接數的說明
- 后一篇:上傳組件fileup