Skip to main content

How to create an Outlook new email with specified command line?

Here in this article, we are going to show you how to create an Outlook email with specified command lines.


Create an Outlook email with specified command lines

Please do as follows to create a new email with specified command line.

1. Create a blank Outlook email

If you only want to create a new blank Outlook email, please click the Search button on the bottom left corner of the desktop, enter the following command line into the address box, and then click the outlook.exe c ipm.note button (or press the Enter key). See screenshot:

outlook.exe /c ipm.note

Then a blank email is created immediately.

2. Create an Outlook email with certain recipient

You can create an Outlook email with certain recipient’s address showing in the To field.

Please click the Search button on the bottom left corner of the desktop, enter the following command line into the address box, and then click the above Outlook button (or press the Enter key). See screenshot:

outlook.exe /c ipm.note /m

Note: please change the to your recipient’s email address.

3. Create an Outlook email with certain recipient, subject and body

Besides, you can create an Outlook email with recipient, subject and body by using a command line. Please do as follows.

Click the Search button on the bottom left corner of the desktop, enter the following command line into the address box, and then click the above Outlook button to create the email (or press the Enter key). See screenshot:

outlook.exe /c ipm.note /m ?v=1&subject=subject%20test&body=Email%20body%20test

Notes:

1. Please change the to your recipient’s email address. And change the subject and body content based on your needs.

2. %20 indicates blank space between words.


Related article:


Best Office Productivity Tools

Kutools for Outlook - Over 100 Powerful Features to Supercharge Your Outlook

🤖 AI Mail Assistant: Instant pro emails with AI magic--one-click to genius replies, perfect tone, multilingual mastery. Transform emailing effortlessly! ...

📧 Email Automation: Out of Office (Available for POP and IMAP)  /  Schedule Send Emails  /  Auto CC/BCC by Rules When Sending Email  /  Auto Forward (Advanced Rules)   /  Auto Add Greeting   /  Automatically Split Multi-Recipient Emails into Individual Messages ...

📨 Email Management: Easily Recall Emails  /  Block Scam Emails by Subjects and Others  /  Delete Duplicate Emails  /  Advanced Search  /  Consolidate Folders ...

📁 Attachments ProBatch Save  /  Batch Detach  /  Batch Compress  /  Auto Save   /  Auto Detach  /  Auto Compress ...

🌟 Interface Magic: 😊More Pretty and Cool Emojis   /  Boost Your Outlook Productivity with Tabbed Views  /  Minimize Outlook Instead of Closing ...

👍 One-click Wonders: Reply All with Incoming Attachments  /   Anti-Phishing Emails  /  🕘Show Sender's Time Zone ...

👩🏼‍🤝‍👩🏻 Contacts & Calendar: Batch Add Contacts From Selected Emails  /  Split a Contact Group to Individual Groups  /  Remove Birthday Reminders ...

Over 100 Features Await Your Exploration! Click Here to Discover More.

Read More       Free Download      Purchase
 

 

Comments (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
excelente amigo muchas gracias... solo me faltaria saber como enviarlo asi directo.. cual seria el comando para darle a enviar correo??????
This comment was minimized by the moderator on the site
Hi randy finol,
Outlook does not have a send Command Line. If you need to do this, please combine both VBA code and command line to get it done.
Note: There is one drawback to this method. Your Outlook must be closed in order for the code to work. After running the command line, the created email will stay in the outbox. You must open Outlook in order to successfully send the email.
1. Open Outlook, press Alt + F11 keys to open the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, then copy the following VBA code into the Module (Code) window.
Sub CommandSendMail()
'Updated by Extendoffice 20220916
Dim xMail As MailItem
Set xMail = Application.ActiveInspector.CurrentItem
With xMail
  .Recipients.Add ""
  .Subject = "Test"
  .Body = "Test body"
  .Recipients.ResolveAll
  .Send
End With
End Sub

3. Save the code and close Outlook.
4. Use the following command line to send an email.
outlook.exe /c ipm.note /autorun CommandSendMail
This comment was minimized by the moderator on the site
On office365 you may need to put '?' instead of '&' before subject. eg. ?subject=subject%20test&body=Email%20body%20test
This comment was minimized by the moderator on the site
^ Wizard, right here.
This comment was minimized by the moderator on the site
а как прописать нескольких получателей?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations