|
-
Sep 24th, 2004, 03:35 AM
#1
Thread Starter
Member
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.
-
Sep 24th, 2004, 08:16 AM
#2
-
Sep 24th, 2004, 12:18 PM
#3
Thread Starter
Member
What is JMail? Is it another email program like Outlook express or is it a 3rd party component to automate email sending?
-
Sep 24th, 2004, 12:20 PM
#4
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
-
Sep 24th, 2004, 12:27 PM
#5
Thread Starter
Member
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.
-
Sep 24th, 2004, 12:31 PM
#6
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.
-
Sep 24th, 2004, 12:48 PM
#7
Thread Starter
Member
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.
-
Sep 26th, 2004, 08:51 PM
#8
Thread Starter
Member
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?
-
Sep 26th, 2004, 09:59 PM
#9
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|