Share via

Outlook command line parameters stopped working

Anonymous
2020-02-07T10:11:16+00:00

Command line switches has stopped working. The following worked has worked for many years with different versions of Outlook (2007, 2010, Office365) until recently when it stopped working:

"C:\Program Files\Microsoft Office\Root\Office16\OUTLOOK.EXE" /c ipm.note /m "******@b.dk&subject=Test&body=Text to customer".

Now it's just seen as part of recipient, and doesn't fill out subject, message body, cc or bcc.

Outlook | Windows | Classic Outlook for Windows | For home

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2020-02-10T21:04:11+00:00

I believe the issue is that Outlook has made the command more strict recently.

While this used to work: "C:\Program Files (x86)\Microsoft Office\root\Office16\outlook.exe" /c ipm.note /m "****@b.dk&**subject=Test&body=Text to customer"

The correct syntax is "...****@b.dk?**subject=Test..."

? to begin the value names with & afterwards.

FYI: This affects Cc= and Bcc= (whichever comes first if in use at all). It may be best to just add a bogus value after the TO value so you can always tack on with "&valuename=X".

Example: "C:\Program Files (x86)\Microsoft Office\root\Office16\outlook.exe" /c ipm.note /m "@b.dk?v=1 & cc=@b.dk&bcc**=@b.dk&subject**=Test**&body**=Text to customer"

Was this answer helpful?

10+ people found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-02-11T11:00:55+00:00

    After changing the first & to a ? it works as expected again.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-02-10T21:28:38+00:00

    oh! I just changed the '&' from my code to '?' and now it's fixed! Thanks!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-02-10T20:29:00+00:00

    Same thing here, users told me automatic email creation from our ERP stopped working since friday, it's a simple C# code that execute outlook.exe with the cmd parameters for the email content but now everything is inserted in the "To" field. We all have version 2001.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2020-02-07T11:34:42+00:00

    Hi jakobmn,

    Thank you for sharing with us, my pleasure to support you.

    "C:\Program Files (x86)\Microsoft Office\root\Office16\outlook.exe" /c ipm.note /m "******@b.dk&subject=Test&body=Text to customer"

    After you enter that above command, should be look like this:

    Let's say you may use the monthly channel version of your outlook the latest build should be version 2001, which you encounter this issue. Our suggestion is you could revert an earlier version of Office, please refer tothis document.

    In addition, could we have a look what version of outlook you are currently using? You can take a screenshot like this:

    Let us know if it helps, appreciate it. 

    Yours Sincerely,

    George

    Was this answer helpful?

    0 comments No comments