Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2003
    Location
    Code Heaven
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sending mail using WSH+JScript

    Hmmm...the problem that I always get a message that it can't create the Automation object Outook.Application...
    Here;s the code:
    var url = "http://www.winscripter.com/index.html"

    // Create instance of Inet Control
    inet = new ActiveXObject("InetCtls.Inet");

    // Set the timeout property
    inet.RequestTimeOut = 20;

    // Set the URL property of the control
    inet.Url = url;

    // Actually download the file
    var s = inet.OpenURL();

    // Show the raw HTML to the user
    WScript.Echo( s );

    // Bonus - Find the title of the page
    // Regular expression to find the string stored between
    // the title tags.
    rtitle = /<title>(.*)<\/title>/i;

    // Execute the regular expression on the raw HTML
    var title = rtitle.exec( s );

    // Display the result
    WScript.Echo( RegExp.$1 );

  • #2
    New Coder
    Join Date
    Aug 2002
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I believe it has to do with licensing the control...

    try here:
    http://dbforums.com/arch/195/2002/11/519829


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •