WebArchiveX.SMTPMailer - API
The SMTP Mailer utility object is used to create and email MHT web archive files.
Use the object if you need to send HTML file and all its content encrypted or
not by email. The MHT file created can be attached or embedded into the body of
the outgoing mail message.
Methods
Properties
Type | Name | Description |
String | sMAILServer | SMTP Mail Server name or IP address |
String | sSMTPUser | SMTP Mail Server account login name |
String | sSMTPPass | SMTP Mail Server account password |
String | sMailBody | E-Mail body: HTML or Text content |
String | sMailRecipients | E-Mail Recipients seperatedby semicolon |
String | sMailSubject | E-Mail subject |
String | sSenderName | Sender full name |
String | sSenderEmail | Sender E-Mail address |
String | sAttachmentsList | Attachments files seperated by semicolon (eg: C:\a.txt;d:\b.txt) |
String | sAttachmentsContentType | Attachments content types seperated by semicolon(eg: message\rfc822;plain\text...) |
Boolean | bDeleteAttachments | Delete all attachments after successful E-Mail sending |
Boolean | bDeleteMHTFile | Delete MHT file after successful E-Mail sending |
WebArchiveX.Builder | oWABuilder | WebArchiveX Builder object |
ASP Sample: VB Script (without error handling)
<%@ Language=VBScript%>
<%
Set oWAMailer = Server.CreateObject("WebArchiveX.SMTPMailer")
oWAMailer.oWABuilder.SetCharset "windows-1255"
oWAMailer.sMAILServer = "MySMTPServerIP"
oWAMailer.sSMTPUser = "MyServerUserName"
oWAMailer.sSMTPPass = "MyServerPassword"
oWAMailer.sMailSubject = "WebArchiveX MHT file"
oWAMailer.sSenderEmail = "info@csystems.co.il"
oWAMailer.sSenderName = "WebArchiveX Robot"
oWAMailer.sMailRecipients = "test@csystems.co.il"
oWAMailer.ArchiveAndSend "C:\inetpub\wwwroot\test\test.html", "C:\inetpub\wwwroot\test\test.mht", True
%>
JavaScript (with error handling)
try
{
var oWAMailer = new ActiveXObject("WebArchiveX.SMTPMailer");
oWAMailer.oWABuilder.SetCharset("windows-1255");
oWAMailer.sMAILServer = 'MySMTPServerIP';
oWAMailer.sSMTPUser = 'MyServerUserName';
oWAMailer.sSMTPPass = 'MyServerPassword';
oWAMailer.sMailSubject = 'WebArchiveX MHT file';
oWAMailer.sSenderEmail = 'info@csystems.co.il;'
oWAMailer.sSenderName = 'WebArchiveX Robot';
oWAMailer.sMailRecipients = 'test@csystems.co.il';
oWAMailer.ArchiveAndSend('c:\\inetput\\wwwroot\\sample.htm', 'c:\\inetput\\wwwroot\\sample.mht',true);
}
catch(e)
{
alert('ERROR: ' + e.description);
}
-
WebArchiveX
API - WebArchiveX Website
- C Systems Website -
C Systems - Creative software solutions since 1996. All rights reserved. Terms of use.