<%@LANGUAGE="VBSCRIPT" %> <HTML> <BODY> <% Set jmail = Server.CreateObject("JMail.Message") jmail.AddRecipient "someone@name.com.tw", "yourname" '此處為收信人的電子郵件位址 jmail.From = "you@name.com.tw" '此處為寄信人的電子郵件位址
jmail.ISOEncodeHeaders = false jmail.ContentTransferEncoding = "base64" msg.Encoding = "base64" msg.Charset = "big5"
jmail.Subject = "寄張圖片給你" jmail.Body = ""
' 將圖片附檔夾入信件中 contentId = jmail.AddAttachment("c:\picture.gif")
' 製作信件 HTML 本文 jmail.HTMLBody = "<html><head><meta http-equiv=""Content-Type"" content=""text/html; charset=big5""></head>" jmail.appendHTML "<body><font color=""red"">嗨!!這有一張圖片:</font><br>" jmail.appendHTML "<img src=""cid:" & contentId & """>" jmail.appendHTML "<br><br>好看嗎 ?</body></html>"
jmail.Send( "mail.you.com" ) '指定送信伺服器 SMTP ,本公司客戶請用 192.168.0.17
%> 信件寄出</BODY> </HTML>
----------------------------------------
|