|
Many of the ASPired2 components use an e-mail file that allows you to use the email_inc.asp file for sending e-mail. This file allows for a variety of e-mail components to be used with the ASPired2 component.
Functions
| E-Mail Functions |
| InitMail |
This opens the e-mail component. This not necessary for CDONTS.
Call InitMail("CDOSYS")
 |
E-mail Type of Type STRING
|
 |
NONE
|
|
| SendMail |
This sends the e-mail.
Call SendMail("CDOSYS", strTo, strFrom, strSubject, strBody, TRUE)
 |
E-mail Type of Type STRING
|
 |
NONE
|
|
Send To Address of Type STRING
|
|
|
|
From Address of Type STRING
|
|
|
|
Subject of Type STRING
|
|
|
|
E-mail Body of Type STRING
|
|
|
|
HTML Formatting of Type BOOL
|
|
|
|
| DeinitMail |
This closes the e-mail component. This is not necessary for CDONTS.
Call DeinitMail("CDOSYS")
 |
E-mail Type of Type STRING
|
 |
NONE
|
|
E-mail Components
The following e-mail components can be used with the email_inc.asp.
| Component |
String to Use |
| CDONTS from Microsoft |
"CDONTS" |
|
CDO from Microsoft
|
"CDOSYS" |
| AspEm@il from Persits Software |
"ASPEMAIL" |
| AspMail from SeverObjects |
"ASPMAIL" |
| JMail from Dimac |
"JMAIL" |
Global Variables
If you use any e-mail component other than CDONTS, you will need to change the global variables.
| gSiteName |
Contains the FromName that is used by some e-mail components. |
|
USED BY: ASPEMAIL, ASPMAIL, JMAIL |
| gMailServer |
This contains the e-mail server address. |
|
USED BY: ASPEMAIL, ASPMAIL, JMAIL, CDOSYS |
|