Results 1 to 9 of 9

Thread: Auto-Email Using Batch Files (.bat)

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    60

    Auto-Email Using Batch Files (.bat)

    Hi, does anyone knows how to auto send a email after a batch file is run? All I have now is that a customized email message with its intended recepient has been set in the batch file but however when the batch file runs, the email program onli starts up and the Send button have to be presses manually before the email has been send. The email program that I am using now is Outlook Express. Does any1 knows how to solve this program, must I use some 3rd party components? Is it possible to achieve this w/o?

    The code is:
    start mailto:[email protected]?subject=Error^&body=Download%%20Has%%20Failed.%%20Please%%20Try%%20To%%20Down load%%20The%%20Configurations%%20Again.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Use JMail

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    60
    What is JMail? Is it another email program like Outlook express or is it a 3rd party component to automate email sending?

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Its a 3rd party control you can call from the command line in a .JS script:

    http://www.webwizguide.info/asp/tuto...l_tutorial.asp

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    60
    I get what u mean but I cannot use tat for my code cause JMail is used for ASP to send email automatically. It acts as something like CDONTS also if I am not wrong. But the code I have now is in a batch file, which is command line codes. Therefore, this JMail cannot be use. Thanks for ur help and link anyway.

  6. #6
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    It can be used from a COMMAND LINE, if you use it from a .JS SCRIPT, just like calling any other command.

    In the .JS script, you instantiate it the same way as if you were in VB or ASP:

    CreateObject(Jmail.whatever)

    I have made my own .JS scripts that run with the Windows Scripting Host FROM A COMMAND LINE.

  7. #7

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    60
    Oh ok, I didn't noe about tat, I will go try it out. But it will have to be 2 days later cause I won't be back in school till then. Anyway, if I have any troubles doing it, I will post on the forum for help again. Thanks.

  8. #8

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    60
    I tried using JMail. (I've downloaded the 3rd party component already) I created a Email.JS Script file. Then I tried to call it in my batch file, start /w Email.JS but it won't open giving me an error that the file specified could not be found. I tried changing the file locations several times but it seems tat the problem lies not wif the location but with the Email.JS file. Or is there something else I have to declare?

  9. #9
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Well it just sounds like its not installed properly.

Posting Permissions

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



Click Here to Expand Forum to Full Width