MailPost - FREE ASP SMTP E-Mailing Class
MailPost - An Active Server Pages(ASP) SMTP E-Mailing Class (Wrapper)
DESCRIPTION
MailPost is a simple API syntax ASP(VBScript) class wrapper to SMTP e-mail components such as the built-in Windows® XP/2000/2003 CDONTS/CDOSYS, and/or third party ActiveX Windows® components such as ServerObject's ASPMailTM, and others like Diamac Development's w3 JMailTM or Persists AspEmailTM. MailPost also supports Chili!Mail, a CDONTS syntax compatible e-mailer object that runs on Sun® Java Systems Active Server Pages (formerly Chili!Soft/Sun® One Active Server Pages) within a cross-platform ASP engine that runs in Unix/Linux environments like SOLARIS® and Redhat® operating systems.
BASIC FEATURES
The MailPost class, `cMailPost', will by default, send with normal priority, a plain text or html formatted message using only the minimum required properties and methods that are shared between all of the e-mail object components that it supports.
There are only four minimum required properties, and only one required method call for the `cMailPost' class to work as a plain text or html formatted e-mailer:
Minumum Required Properties:
- cMailPost.MailRcptTo - [ Property (read-write) ] - Recipient To Address
- cMailPost.MailFrom - [ Property (read-write) ] - Mail From Address
- cMailPost.MailSubject - [ Property (read-write) ] - E-mail Subject
- cMailPost.MailBody - [ Property (read-write) ] - Msg. Body as plain text or html (default)
Minumum Required Method:
- cMailPost.MailSend - [ Method (read-only/execute) ] - Send. (Returns TRUE or FALSE)
DEFAULT RUNTIME
By default, when MailPost is used with only the minimum required properties and method call, it will auto-determine at runtime if any available SMTP COM object is installed, and initialize and execute the first one it finds. MailPost begins it's search and execute starting with the CDONTS (Windows® XP/2000) component. If it does not find CDONTS, then MailPost will try CDOSYS (Windows® 2003). Lastly, MailPost will then look for any of the most popular third party ActiveX COM's, initialize the first commercial or third party component that it knows about, and then execute sending an email with it, in the following order:
- Diamac Development's w3 JMailTM
- ServerObject's ASPMailTM
- Persits AspEmailTM
- DundasMailerTM
Starting with v1.0 of MailPost, the very simple default runtime behavior examines the content type of the message body, and determine if the message is formatted using plain text or NON-MIME encoded html formatting, and adjust the receiving components content type to work with the message body accordingly. This provides the flexibility to use MailPost with basic html formatting capability, and without having to perform additional logic operations or properties and calls in your ASP code prior to sending a message.
ADVANCED FEATURES
With some of the more advanced properties and/or method call features of MailPost, one unique feature is the ability to configure MailPost to implicitly specify and/or look for and use the desired email component of choice for sending with. It will intialize and execute any the found component for sending a message with.
Some more advanced features will soon be available in the later version(s) of MailPost and will include features such as:
- Specifying X-Priority header of the message as Low, Normal, or High
- Include MIME encoded email messages and/or attachments
- Specify additional X-abcdef header(s) to include with the message.
- Pass certain component specific arguments to the class for use when implicitly specifying the desired ActiveX COM to use when using the read/write .SetMailObj = N property.
DOWNLOAD
You can Download MailPost for free at http://engnuix.org/mailpost/cls_mailpost.asp.txt.
DEMO
View a live demo of this script here!
SUPPORT
The User-Guide along with Syntax API and object reference information for the properties and methods used in the `cMailPost' class is available at http://engnuix.info/documentation/asp-docs/mailpost/mailpost-overview.html.
LICENSE
MailPost ASP/VBScript class `cMailPost' is provided free, as open-source software, and licensed under a BSD-style agreement.
Reuben Moore, ENGNUIX - All Rights Reserved.

