command line for multiple attachments

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
 
R

Roady [MVP]

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

Guest

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
 
R

Roady [MVP]

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
 
E

ekbustad

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top