View Single Post
Old 04-09-2009, 01:37 PM   #1 (permalink)
benny237
 
Newb Techie

Join Date: Feb 2009

Posts: 20

benny237 is on a distinguished road

Default activeX email question

I would like to write an activeX script for a button . . .

when the user presses that button it automatically sends an email to a specified email address. . .the user does not have to press anything except for the web button . . .

var ax = new ActiveXObject("WScript.Network");
document.write("Username: ");
document.write(ax.UserName + '<br />');
document.write("Computer Name: ");
document.write(ax.ComputerName + '<br />');
document.write("Domain Name: ");
document.write(ax.UserDomain + '<br />');


above is code I am using to extrapolate the username and computername . . .

what I still would like to do . . .



is there anyway to get the ip address of the computer??

also, how would I send all of this data in an email to the helpdesk mailbox??

PLEASE, any help is greatly appreciated!!
benny237 is offline