AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New Outlook mail message
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
David



Joined: 08 Aug 2004
Posts: 25
Location: Lubbock, Texas

PostPosted: Mon Aug 09, 2004 5:45 pm    Post subject: New Outlook mail message Reply with quote

This starts a new e-mail message in Outlook. Nothing earth-shattering but it's something I use constantly.

Code:
#z:: Run, "%programfiles%\Microsoft Office\OFFICE11\OUTLOOK.EXE" /c ipm.note
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Mon Aug 09, 2004 6:35 pm    Post subject: Reply with quote

That's neat, thanks.
Back to top
View user's profile Send private message Send e-mail
Payam



Joined: 07 Apr 2004
Posts: 62

PostPosted: Mon Aug 09, 2004 10:15 pm    Post subject: Reply with quote

David, thank you!
May I ask how you found this out as I'd like to find some other commands as well.
Thanks
Back to top
View user's profile Send private message Send e-mail MSN Messenger
ck



Joined: 25 Jul 2004
Posts: 8

PostPosted: Mon Aug 09, 2004 10:19 pm    Post subject: Reply with quote

Google is your friend:

http://www.outlook-tips.net/howto/commandlines.htm
Back to top
View user's profile Send private message
Kilav
Guest





PostPosted: Tue Aug 10, 2004 5:19 am    Post subject: Reply with quote

Get some more.
Microsoft Outlook - Command line options I - Tue Jul 13, 2004 7:23 am
Microsoft Outlook - Command line options II - Sat Jul 17, 2004 8:23 am
Same topic - Same forum
Back to top
David



Joined: 08 Aug 2004
Posts: 25
Location: Lubbock, Texas

PostPosted: Tue Aug 10, 2004 3:55 pm    Post subject: Reply with quote

I found the codes in Outlook help, under "Command-line switches":
  • /c ipm.activity creates a Journal entry
  • /c ipm.appointment creates an appointment
  • /c ipm.contact creates a contact
  • /c ipm.note creates an e-mail message
  • /c ipm.stickynote creates a note
  • /c ipm.task creates a task
Back to top
View user's profile Send private message
MisterGank



Joined: 07 May 2005
Posts: 26
Location: USA

PostPosted: Fri Aug 11, 2006 3:52 am    Post subject: Reply with quote

This is GREAT info!!!

So, what I'm gathering and reading...

Code:
Outlook.exe /c ipm.note /m test@poremsky.com


Will auto fill out the address line! This is great!

Next step that I can't find, whats the commad for filling out possible cc, bcc, and the subject? then body? or am I just trying to hard?
Back to top
View user's profile Send private message Visit poster's website
MisterGank



Joined: 07 May 2005
Posts: 26
Location: USA

PostPosted: Fri Aug 11, 2006 4:11 am    Post subject: Reply with quote

oh geez I guess I completely forgot about using the whole thing of

Code:
mailto:no@mail.com?Body=Hello Sir &subject=Greetings


Hurm, whats the differance?
Back to top
View user's profile Send private message Visit poster's website
vishy4



Joined: 12 Jul 2010
Posts: 1

PostPosted: Mon Jul 12, 2010 8:00 am    Post subject: Reply with quote

For Office 2007, change the string from Office 11 to Office 12, i got an error, hence posting here, so others can solve it.

Code:
#z:: Run, "%programfiles%\Microsoft Office\OFFICE12\OUTLOOK.EXE" /c ipm.note
Back to top
View user's profile Send private message
641E25EC-8EB0-11DF-976B-2
Guest





PostPosted: Tue Jul 13, 2010 6:57 pm    Post subject: works for me Reply with quote

The only difference between your call and mine is that I don't have a comma after the "Run" (and I hard-coded "program files"). My call works and looks like this:

^!m::
Run "c:\program files\microsoft office\office12\outlook.exe" /c ipm.note
Return
Back to top
virulency



Joined: 05 Aug 2010
Posts: 3

PostPosted: Thu Aug 05, 2010 6:24 pm    Post subject: got it Reply with quote

i think i have figured out how to send an email with an attachment and subject body and to field filled out

run, C:\Program Files\Microsoft Office\Office12\outlook.exe /c ipm.note /a "filename.txt" /m email.com&subject=something`%20something&body=somethingsomething

to create a space you must use `%20

`marks out the % sign so it makes a space, spaces are not allowed and cause the command line argument/verify switch error

also variables do work
Back to top
View user's profile Send private message
Ludo



Joined: 23 Apr 2011
Posts: 14
Location: Strasbourg, France

PostPosted: Sat Sep 17, 2011 1:26 pm    Post subject: Reply with quote

You can also use (for Outlook 2003) the following shortcuts:

CTRL+SHIFT+M for a new message
replace M by a for an appointment or c for a contact, l for a list.

so I send ^+m then the recipient address then tab then the cc then tab then the object etc.

I've a CTRL+F1 to Fxx for the peoples I emailed very often. Smile
Back to top
View user's profile Send private message
BigMan



Joined: 10 Nov 2011
Posts: 80
Location: Somewhere in Arkansas

PostPosted: Fri Jan 20, 2012 3:55 pm    Post subject: Reply with quote

I tried this and it seems to work pretty well, but I cannot get the attachment part to work. Not sure if I really have a use for it right now, but think it could be valuable knowledge for the future.

Also, how do you get it to SEND once your done?

Code:
;;;THIS RUN WILL PUT john doe in the TO and PUT LetterJob Process IN SUBJECT LINE AND Complete IN THE BODY OF E-MAIL
Run, C:\Program Files\Microsoft Office\Office12\outlook.exe /c ipm.note /c "Documents and Settings\xxx1234\My Documents\testsb.txt" /m john.doe@anyjob.com&subject=LetterJob`%20Process&body=COMPLETE


;;;ANOTHER OPTION
;;;THIS RUN ALSO WORKS AND ALLOWS YOU TO SEND MORE INFO MUCH EASIER
Run "c:\program files\microsoft office\office12\outlook.exe" /c ipm.note /m john.doe@anyjob.com
Send {Tab 2}
Sleep 100
Send Letter job has completed successfully
Sleep 100
Send {Tab}
Send Job completed successfully, please check in morning for verification
Sleep 100
Back to top
View user's profile Send private message
Ludo



Joined: 23 Apr 2011
Posts: 14
Location: Strasbourg, France

PostPosted: Sat Jan 21, 2012 5:32 pm    Post subject: Reply with quote

When the email is open, CTRL+ENTER (for outlook 2003) will send the message.

If you wish to automate everything I recommand to launch the script offline so that you can check if something went wrong instead of sending tens of "wrong" emails.
Back to top
View user's profile Send private message
Xx7



Joined: 19 Apr 2011
Posts: 210

PostPosted: Sun Jan 22, 2012 6:48 pm    Post subject: Reply with quote

Thanks BigMan! I will use that Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group