PC Review


Reply
Thread Tools Rate Thread

Combine Command-line switches to send an email with

 
 
rjchaney
Guest
Posts: n/a
 
      24th Mar 2009
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 Removed) /a "c:\document.doc"

 
Reply With Quote
 
 
 
 
Roady [MVP]
Guest
Posts: n/a
 
      24th Mar 2009
Yes, exactly as you typed ;-)
Tried it already?

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

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"rjchaney" <Rufus (E-Mail Removed)> wrote in message
news:7E599E65-DAFE-481C-AE2F-(E-Mail Removed)...
> 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 Removed) /a "c:\document.doc"
>

 
Reply With Quote
 
Rufus Chaney
Guest
Posts: n/a
 
      24th Mar 2009
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.

"Roady [MVP]" wrote:

> Yes, exactly as you typed ;-)
> Tried it already?
>
> --
> Robert Sparnaaij [MVP-Outlook]
> Coauthor, Configuring Microsoft Outlook 2003
> http://www.howto-outlook.com/
> Outlook FAQ, HowTo, Downloads, Add-Ins and more
>
> http://www.msoutlook.info/
> Real World Questions, Real World Answers
>
> -----
>
> "rjchaney" <Rufus (E-Mail Removed)> wrote in message
> news:7E599E65-DAFE-481C-AE2F-(E-Mail Removed)...
> > 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 Removed) /a "c:\document.doc"
> >

>

 
Reply With Quote
 
VanguardLH
Guest
Posts: n/a
 
      25th Mar 2009
rjchaney wrote:

> 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 Removed) /a "c:\document.doc"


http://office.microsoft.com/en-us/ou...031101033.aspx

That's for OL2003. You never mentioned YOUR version of Outlook. Maybe
it's an old version that doesn't support all the same parameters.
 
Reply With Quote
 
VanguardLH
Guest
Posts: n/a
 
      25th Mar 2009
Rufus Chaney wrote:

> Roady wrote:
>
>> rjchaney wrote ...
>>
>>> 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 Removed) /a "c:\document.doc"

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

>
> 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
------------------------------------------------------------

Notice the "Only works ..." sentence. That might mean /m only works
with /c alone and not with other parameters. Seems to match up with
what you discovered.
 
Reply With Quote
 
Rufus Chaney
Guest
Posts: n/a
 
      25th Mar 2009
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.

"VanguardLH" wrote:

> Rufus Chaney wrote:
>
> > Roady wrote:
> >
> >> rjchaney wrote ...
> >>
> >>> 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 Removed) /a "c:\document.doc"
> >>
> >> Yes, exactly as you typed ;-)
> >> Tried it already?

> >
> > 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
> ------------------------------------------------------------
>
> Notice the "Only works ..." sentence. That might mean /m only works
> with /c alone and not with other parameters. Seems to match up with
> what you discovered.
>

 
Reply With Quote
 
Diane Poremsky [MVP]
Guest
Posts: n/a
 
      25th Mar 2009
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: http://www.outlook-tips.net/
Outlook & Exchange Solutions Center: http://www.slipstick.com

Outlook Tips by email:
mailto:dailytips-subscribe-(E-Mail Removed)

EMO - a weekly newsletter about Outlook and Exchange:
mailto:EMO-NEWSLETTER-SUBSCRIBE-(E-Mail Removed)

You can access this newsgroup by visiting
http://www.microsoft.com/office/comm...s/default.mspx or point your
newsreader to msnews.microsoft.com.


"Rufus Chaney" <(E-Mail Removed)> wrote in message
news:C2F73225-83F1-49FD-A702-(E-Mail Removed)...
> 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.
>
> "VanguardLH" wrote:
>
>> Rufus Chaney wrote:
>>
>> > Roady wrote:
>> >
>> >> rjchaney wrote ...
>> >>
>> >>> 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 Removed) /a "c:\document.doc"
>> >>
>> >> Yes, exactly as you typed ;-)
>> >> Tried it already?
>> >
>> > 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
>> ------------------------------------------------------------
>>
>> Notice the "Only works ..." sentence. That might mean /m only works
>> with /c alone and not with other parameters. Seems to match up with
>> what you discovered.
>>

 
Reply With Quote
 
Rufus Chaney
Guest
Posts: n/a
 
      25th Mar 2009
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 [MVP]" wrote:

> 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: http://www.outlook-tips.net/
> Outlook & Exchange Solutions Center: http://www.slipstick.com
>
> Outlook Tips by email:
> mailto:dailytips-subscribe-(E-Mail Removed)
>
> EMO - a weekly newsletter about Outlook and Exchange:
> mailto:EMO-NEWSLETTER-SUBSCRIBE-(E-Mail Removed)
>
> You can access this newsgroup by visiting
> http://www.microsoft.com/office/comm...s/default.mspx or point your
> newsreader to msnews.microsoft.com.
>
>
> "Rufus Chaney" <(E-Mail Removed)> wrote in message
> news:C2F73225-83F1-49FD-A702-(E-Mail Removed)...
> > 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.
> >
> > "VanguardLH" wrote:
> >
> >> Rufus Chaney wrote:
> >>
> >> > Roady wrote:
> >> >
> >> >> rjchaney wrote ...
> >> >>
> >> >>> 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 Removed) /a "c:\document.doc"
> >> >>
> >> >> Yes, exactly as you typed ;-)
> >> >> Tried it already?
> >> >
> >> > 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
> >> ------------------------------------------------------------
> >>
> >> Notice the "Only works ..." sentence. That might mean /m only works
> >> with /c alone and not with other parameters. Seems to match up with
> >> what you discovered.
> >>

>

 
Reply With Quote
 
Rufus Chaney
Guest
Posts: n/a
 
      25th Mar 2009
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 [MVP]" wrote:

> 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: http://www.outlook-tips.net/
> Outlook & Exchange Solutions Center: http://www.slipstick.com
>
> Outlook Tips by email:
> mailto:dailytips-subscribe-(E-Mail Removed)
>
> EMO - a weekly newsletter about Outlook and Exchange:
> mailto:EMO-NEWSLETTER-SUBSCRIBE-(E-Mail Removed)
>
> You can access this newsgroup by visiting
> http://www.microsoft.com/office/comm...s/default.mspx or point your
> newsreader to msnews.microsoft.com.
>
>
> "Rufus Chaney" <(E-Mail Removed)> wrote in message
> news:C2F73225-83F1-49FD-A702-(E-Mail Removed)...
> > 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.
> >
> > "VanguardLH" wrote:
> >
> >> Rufus Chaney wrote:
> >>
> >> > Roady wrote:
> >> >
> >> >> rjchaney wrote ...
> >> >>
> >> >>> 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 Removed) /a "c:\document.doc"
> >> >>
> >> >> Yes, exactly as you typed ;-)
> >> >> Tried it already?
> >> >
> >> > 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
> >> ------------------------------------------------------------
> >>
> >> Notice the "Only works ..." sentence. That might mean /m only works
> >> with /c alone and not with other parameters. Seems to match up with
> >> what you discovered.
> >>

>

 
Reply With Quote
 
Brian Tillman [MVP - Outlook]
Guest
Posts: n/a
 
      25th Mar 2009
"Roady [MVP]" <newsgroups_DELETE_@_DELETE_sparnaaij_NO_._SPAM_net> wrote in
message news:(E-Mail Removed)...

> 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.
--
Brian Tillman [MVP-Outlook]

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine /a and /m command line switches RichardB Microsoft Outlook Discussion 5 19th Mar 2008 02:17 PM
how to use Outlook command line switches to send MULTIPLE attachs =?Utf-8?B?VFRUVFQ=?= Microsoft Outlook Discussion 0 18th Jan 2006 04:45 PM
how to send email in command line? linq936@hotmail.com Microsoft Outlook 4 2nd Nov 2005 04:18 PM
command line send email Katie Microsoft Outlook Discussion 0 6th Oct 2005 08:23 AM
Send email from Command Line Michael H Microsoft Outlook Discussion 0 29th Jun 2004 01:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 PM.