|
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

|