|
ASP
Email
More detial or script code example
Set JMail = Server.CreateObject("JMail.SMTPMail")
use JMail.SMTPMail to send email
----- you may set a different name as you wish ---
set SMTP=Server.CreateObject("Jmail.SMTPMail")
要求伺服主機以JMail.SMTPMail來寄信 Description: First:: To confirm your web server does have JMail service
installed before you run JMail.SMTPMail
create and send a email by using Jmail.SMTPMail
It often been used to create autoresponse email
example: member information , forgot password
email sending.
you may send text or html form
Plain Text format
[ linebreaks to the mailbody Use vbcrlf ]
example: JMail.AppendText "Dear," & vbCrLf
HTML format must have ContentType
[ JMail.ContentType = "text/html" ]
------------- attention --------------
Sender email address and AddRecipient (receiver)
email address are required to be listed by Jmail
Every email has its unity ID even if
you used false info, your location still will be
listed at many servers. [ no way to hide ]
-------attention :: internet security -----------
set your email browser to read only text format
is always safer than to read HTML format
even if preview a HTML format
請先確認你的主機是否有安裝JMail的服務項目
經常被使用在會員資料的自動寄出
與會員忘記密碼資料要求時的自動寄出
----注意網路安全----
最佳設定你的電子郵件信箱瀏覽方式為::
將信件全以text文字化顯示出
(你將會看到所有的HTML的原始檔)
請記得若以HTML讀取或預覽任何
信件時,是有可能會提升你的電腦被駭的危險性 
ASP
Email
More detial or script code example
CDONTS : Set objMessage = Server.CreateObject("CDO.Message")
CDO.Message 信件 CDONTS Description: Set objMessage = Server.CreateObject("CDO.Message")
sending TEXT : objMessage.TextBody
sending HTML : objMessage.HTMLBody
sending Attachment : objMessage.AddAttachment
------all email shall contain with an email@address-----
objMessage.To = "to@---.com"
objMessage.From = "from@---.com"
objMessage.Bcc = "Bcc@---.com"
objMessage.Cc = "Cc@---.com"
------------- objMessage.send -------------
you may have 2 or more
objMessage.send
objMessage2.send
objMessage3.send
in on script
-------------------Server Address----------------
it is different with Server.CreateObject("JMail.SMTPMail")
when use Server.CreateObject("CDO.Message")
you do not list your Server Address in the script
-------- How yahoo receive this kind of email-----
yahoo treat this kind of auto send out letter as
bulk email unless the address is listed on
your address book
------------- Every email has an ID -------------
!!! Do not send junk emails !!!
Each email has its own ID and mail server name...
Your local server shall also receive each email ID
CDONTS為常用的寄件系統
並且可寄出HTML超文模式, 附件檔
不須提供SMTP server 名稱或IP
可寄出TEXT型式
或寄出HTML模式 
ASP
Email
More detial or script code example
AspMail : Set AspMail = Server.CreateObject("SMTPsvg.Mailer")
---- you may any name you want ----
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Description: AspMail can send mail by using the standard SMTP
protocol from any program that can use
ActiveX/OLE components.
RemoteHost :
The SMTP server to be used for sending the message
BodyText :
This will be the actual message.

ASP
Email
More detial or script code example
ASPEmail : set objMail = Server.CreateObject("Persits.MailSender")
ASPEmail 電子郵件系統 Description: need to have smtp-server
you may add : Optional Recipient Name
ASPemail為常用的寄件系統
並且可寄出HTML超文模式, 附件檔
必須提供SMTP server 名稱或IP 
|