G
Guest
Hi,
I would like to be able to send an email message from a script. My
operating system is Windows XP. I have Outlook 2003 installed. I am not
allowed to install any 3rd party software packages. Will the standard
Windows installation allow me to do such a thing? This email would be
generated and send from within a batch file after some certain processing is
done.
I've found a couple of various tips that come sort of close:
1) From the command line, I can type "outlook.exe /c ipm.note /m
(e-mail address removed)" and I get an email message that pops up with
myemail.mycomp.com in the To: field. Is there a way to expand this to
include automatically sending the email? And if so, how do I fill in the
subject and body? I've also be able to type "outlook.exe /a somefile.txt",
and again I get an email with somefile.txt as an attachment. But I was not
able to combine the /a and /m options to have both the To: and attachment
filled in. I would rather not have any attachment anyway (just want the
body), I'm just more curious how the command line parameters work for Outlook.
2) From Start | Run, type
"mailto:[email protected]&subject=subject&body=This is the body". This at
least brings up an email message with the To:, Subject:, and Body filled in.
This is closer to what I am looking for. Can I add something to this command
that would also automatically send the email?
3) I tried the above command from the command line window and I just got a
bunch of errors. Why does #2 work from Start | Run and not the Command
window?
Thanks in advance for any help or ideas.
Beth
I would like to be able to send an email message from a script. My
operating system is Windows XP. I have Outlook 2003 installed. I am not
allowed to install any 3rd party software packages. Will the standard
Windows installation allow me to do such a thing? This email would be
generated and send from within a batch file after some certain processing is
done.
I've found a couple of various tips that come sort of close:
1) From the command line, I can type "outlook.exe /c ipm.note /m
(e-mail address removed)" and I get an email message that pops up with
myemail.mycomp.com in the To: field. Is there a way to expand this to
include automatically sending the email? And if so, how do I fill in the
subject and body? I've also be able to type "outlook.exe /a somefile.txt",
and again I get an email with somefile.txt as an attachment. But I was not
able to combine the /a and /m options to have both the To: and attachment
filled in. I would rather not have any attachment anyway (just want the
body), I'm just more curious how the command line parameters work for Outlook.
2) From Start | Run, type
"mailto:[email protected]&subject=subject&body=This is the body". This at
least brings up an email message with the To:, Subject:, and Body filled in.
This is closer to what I am looking for. Can I add something to this command
that would also automatically send the email?
3) I tried the above command from the command line window and I just got a
bunch of errors. Why does #2 work from Start | Run and not the Command
window?
Thanks in advance for any help or ideas.
Beth