command line for multiple attachments

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Visual Basic Shell command works great for one attachment

"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
s:\test\test-coverletter.pdf"

but I am trying to send more than one attachment into shell

ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
s:\test\test-tpp.pdf are 3 files I have verified that exist on system and
user wants to send via e-mail from within VB program shelling to Outlook.

I have tried several variations on shell command line but cannot seem to
find the correct solution. Any Help would be appreciated.

Thanks Ted
 
Use the Outlook Object Model instead or compress the files first into a
single zip-file.
 
Great Idea. Thanks.

Roady said:
Use the Outlook Object Model instead or compress the files first into a
single zip-file.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
Ted ODonnell said:
Visual Basic Shell command works great for one attachment

"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
s:\test\test-coverletter.pdf"

but I am trying to send more than one attachment into shell

ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
s:\test\test-tpp.pdf are 3 files I have verified that exist on system and
user wants to send via e-mail from within VB program shelling to Outlook.

I have tried several variations on shell command line but cannot seem to
find the correct solution. Any Help would be appreciated.

Thanks Ted
 
You're welcome! :-)

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
Ted ODonnell said:
Great Idea. Thanks.

Roady said:
Use the Outlook Object Model instead or compress the files first into a
single zip-file.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
Ted ODonnell said:
Visual Basic Shell command works great for one attachment

"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
s:\test\test-coverletter.pdf"

but I am trying to send more than one attachment into shell

ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
s:\test\test-tpp.pdf are 3 files I have verified that exist on system
and
user wants to send via e-mail from within VB program shelling to
Outlook.

I have tried several variations on shell command line but cannot seem
to
find the correct solution. Any Help would be appreciated.

Thanks Ted
 
Fine. But what it one wants to specify a recipient on the command
line also. It seems that the /a option for attachments and the /m
option for specifying a recipient email address are not allowed to be
used together. Any idea why?

= Eric Bustad


You're welcome! :-)

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more


Great Idea. Thanks.
Use the Outlook Object Model instead or compress the files first into a
single zip-file.
--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more
-----
Visual Basic Shellcommandworks great for oneattachment
"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
s:\test\test-coverletter.pdf"
but I am trying to send more than oneattachmentinto shell
ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
s:\test\test-tpp.pdf are 3 files I have verified that exist on system
and
user wants to send via e-mail from within VB program shelling to
Outlook.
I have tried several variations on shellcommandlinebut cannot seem
to
find the correct solution. Any Help would be appreciated.
Thanks Ted
 
Back
Top