JMail

出自 ProgWiki
前往: 導覽搜尋

JMail,ASP常見的POP3寄信元件之ㄧ。可由dimac公司的官網下載免費版。

技術文件

使用範例

  • ASP的自訂函數
Sub SendMail(eFrom,eTo,FromName,ToName,Subject,Body)
	Dim JMail
	Set JMail = Server.CreateObject("JMail.SMTPMail") 
	JMail.LazySend = true
	JMail.ContentType = "text/html"
	JMail.Charset = "big5"	
	JMail.Sender = eFrom
	JMail.SenderName = FromName
	JMail.Subject = Subject
	JMail.AddRecipientEx eTo,ToName
	JMail.Body = Body
	JMail.Execute
	Set JMail = Nothing
End Sub