|
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")
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

ASP
Email
More detial or script code example
CDONTS : Set objMessage = Server.CreateObject("CDO.Message")
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

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")
Description: need to have smtp-server
you may add : Optional Recipient Name

|