| Author |
Message |
Jim
Guest
|
Posted:
Tue Dec 21, 2004 10:03 pm Post subject:
Email from Command Line |
|
|
I am not looking for a VBScript. In the past, I had used a command line
script that built a simple text file from variables and then copied it to
the inetpub\mailroot\pickup folder where it was then delivered to whomever
was addressed in the text file. Obviously, the text file had to be
formatted in such a way the system could read it as mail and deliver it.
Can anyone give me an example of how a simple text file would have to be
laid out so that it can be delivered in this manner? I've lost my records.
Thanks,
Jim |
|
| Back to top |
|
 |
Ray Costanzo [MVP]
Guest
|
Posted:
Tue Dec 21, 2004 10:29 pm Post subject:
Re: Email from Command Line |
|
|
Here's a sample from before.
http://groups-beta.google.com/group/microsoft.public.inetserver.asp.general/msg/88ec941434ebc507
If you're running the script on the SMTP server, you wouldn't want to use a
UNC path to the server. That was only relevant to the original question in
this thread. A hard-coded "C:\Inetpub\mailroot\pickup" would probably
suffice.
Ray at work
"Jim" <not@home.now> wrote in message
news:%23USkaa35EHA.2608@TK2MSFTNGP10.phx.gbl...
| Quote: | I am not looking for a VBScript. In the past, I had used a command line
script that built a simple text file from variables and then copied it to
the inetpub\mailroot\pickup folder where it was then delivered to whomever
was addressed in the text file. Obviously, the text file had to be
formatted in such a way the system could read it as mail and deliver it.
Can anyone give me an example of how a simple text file would have to be
laid out so that it can be delivered in this manner? I've lost my
records.
Thanks,
Jim
|
|
|
| Back to top |
|
 |
Ray Costanzo [MVP]
Guest
|
Posted:
Tue Dec 21, 2004 10:33 pm Post subject:
Re: Email from Command Line |
|
|
So, I apparently missed the first sentence in your post, "I am ~not~ looking
for VBScript." :|
Ray at work
"Jim" <not@home.now> wrote in message
news:%23USkaa35EHA.2608@TK2MSFTNGP10.phx.gbl...
| Quote: | I am not looking for a VBScript. In the past, I had used a command line
script that built a simple text file from variables and then copied it to
the inetpub\mailroot\pickup folder where it was then delivered to whomever
was addressed in the text file. Obviously, the text file had to be
formatted in such a way the system could read it as mail and deliver it.
Can anyone give me an example of how a simple text file would have to be
laid out so that it can be delivered in this manner? I've lost my
records.
Thanks,
Jim
|
|
|
| Back to top |
|
 |
Jim
Guest
|
Posted:
Tue Dec 21, 2004 11:00 pm Post subject:
Re: Email from Command Line |
|
|
Thanks anyway. I did get what I need from the script. Apparently there is
no magical header...
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Od7QOr35EHA.1596@tk2msftngp13.phx.gbl...
| Quote: | So, I apparently missed the first sentence in your post, "I am ~not~
looking
for VBScript." :|
Ray at work
"Jim" <not@home.now> wrote in message
news:%23USkaa35EHA.2608@TK2MSFTNGP10.phx.gbl...
I am not looking for a VBScript. In the past, I had used a command line
script that built a simple text file from variables and then copied it to
the inetpub\mailroot\pickup folder where it was then delivered to
whomever
was addressed in the text file. Obviously, the text file had to be
formatted in such a way the system could read it as mail and deliver it.
Can anyone give me an example of how a simple text file would have to be
laid out so that it can be delivered in this manner? I've lost my
records.
Thanks,
Jim
|
|
|
| Back to top |
|
 |
|
|
|
|