Description: COM dll written in C++ that allows you to easily to send email and download web pages and binary content.
Current Version: 0.3 Beta
Release Date: 17 Dec 2000
Author: Daren Thiel
Web Site: http://www.winscripter.com
SMTP Example
// Define variables
var smtp, to, from, subject, body;
// Instantiate COM object
mail = new ActiveXObject( "wsInetTools.SMTP" );
// Enter you mail server
mail.MailServer = "smtp.yourdomain.com";
// Set email properties
from = "youremail@yourdomain.com";
to = "recipient@somedomain.com";
subject = "Testing wsInetTools";
body = "This is just a test message\r\n";
// Send the mail
mail.SendMail( from, to, subject, body );
HTTP Web Page Example
// Define variables
var web, file, url;
// URL of the page want to download
url = "http://www.winscripter.com/content.html";
// Instantiate the COM object
web = new ActiveXObject( "wsInetTools.HTTP" );
// Download the page and store in variable 'file'
file = web.GetWebPage( url );
HTTP Binary Example
// Instantiate the COM object
var web = new ActiveXObject( "wsInetTools.HTTP" );
// Define the full path to local and remote files
var remoteBinaryFile = "http://www.winscript.com/ads/ad1.gif"
var localBinaryFile = "e:\\ad1.gif";
// Call GetBinary
web.GetBinary( remoteBinaryFile, localBinaryFile );