Combine Command-line switches to send an email with

  • Thread starter Thread starter rjchaney
  • Start date Start date
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"
 
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.
 
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
 
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.
 
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.
 
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.
 
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.
 
Back
Top