Combine Command-line switches to send an email with

R

rjchaney

Is there a way to combine Command-line switches to send an email with
attached and include the email address?

i.e. outlook.exe /c ipm.note /m (e-mail address removed) /a "c:\document.doc"
 
R

Rufus Chaney

I receive and error message: "The command line argument is not valid:
Verify the switch you are using."

It looks as if I am unable to combine switch arguments. It seems that I can
either specify the email address or the attachment, but not both...kind of
lame.
 
V

VanguardLH

Rufus said:
I receive and error message: "The command line argument is not valid:
Verify the switch you are using."

It looks as if I am unable to combine switch arguments. It seems that I can
either specify the email address or the attachment, but not both...kind of
lame.

From the Microsoft article for which I gave you a link in my other post:

------------------------------------------------------------
/m emailname
Provides a way for the user to add an e-mail name to the item.
Only works in conjunction with the /c command-line parameter.

Example:
Outlook.exe /c ipm.note /m emailname
 
R

Rufus Chaney

I am using Outlook 2003. I am able to create the email and add the email
address, but I unable to at the same time add the attachment. Or I am able
to create the email with the attachment, but I am unable to add the email
address.

I guess it must a a security feature.
 
D

Diane Poremsky [MVP]

R

Rufus Chaney

I need to send a batch file to about 500 users. The batch file will grab
their system info and email back to me. I am trying to make it idiot proof.

Diane Poremsky said:
What version # (build number)? An update may have broken some switches...
how about making a preaddressed form so you don't need the address switch?

--
Diane Poremsky [MVP - Outlook]



Outlook Tips by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

You can access this newsgroup by visiting
http://www.microsoft.com/office/community/en-us/default.mspx or point your
newsreader to msnews.microsoft.com.


Rufus Chaney said:
I am using Outlook 2003. I am able to create the email and add the email
address, but I unable to at the same time add the attachment. Or I am
able
to create the email with the attachment, but I am unable to add the email
address.

I guess it must a a security feature.
 
R

Rufus Chaney

We are upgrade all of our computer labs to Office 2007. I am sending a batch
file to about 500 users in order to grab the system info from each work
station and email back to me.

Diane Poremsky said:
What version # (build number)? An update may have broken some switches...
how about making a preaddressed form so you don't need the address switch?

--
Diane Poremsky [MVP - Outlook]



Outlook Tips by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

You can access this newsgroup by visiting
http://www.microsoft.com/office/community/en-us/default.mspx or point your
newsreader to msnews.microsoft.com.


Rufus Chaney said:
I am using Outlook 2003. I am able to create the email and add the email
address, but I unable to at the same time add the attachment. Or I am
able
to create the email with the attachment, but I am unable to add the email
address.

I guess it must a a security feature.
 
B

Brian Tillman [MVP - Outlook]

Yes, exactly as you typed ;-)
Tried it already?

The /m switch cannot be used with any switch other than /c, according to
Outlook's Help.
 
D

Diane Poremsky [MVP]

It used to be that as long as you have /m *and* /c, it worked with others.
Outlook 2007 broke it and something broke it in other versions - possibly a
windows update.


--
Diane Poremsky [MVP - Outlook]



Outlook Tips by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

You can access this newsgroup by visiting
http://www.microsoft.com/office/community/en-us/default.mspx or point your
newsreader to msnews.microsoft.com.
 

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