Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OWA 2010 Url parameter for filling in multiple recipients

If already logged into Live, I can enter a url as follows:

https://xxxxx.outlook.com/owa/?ae=Item&a=New&t=IPM.Note&[email protected]

And it will open the Compose email with the To filled in. I need to send the email to multiple recipients. I tried:

https://xxxxx.outlook.com/owa/?ae=Item&a=New&t=IPM.Note&[email protected];[email protected]

and it doesn't work. It doesn't parse the 'to' correctly and treats it as one email address.

I tried different delimiters and spaces in the url with no luck. I found nothing that works for OWA 2010.

How to do this?

like image 529
joetherod Avatar asked Oct 26 '11 19:10

joetherod


1 Answers

OWA 2010 has a parameter called "email" that takes as an argument a fully URL-encoded mailto: string. It wants comma separated email addresses, though. Short answer for you is

https://xxxxx.outlook.com/owa/?ae=Item&a=New&t=IPM.Note&email=mailto:[email protected],[email protected] https://xxxxx.outlook.com/owa/?ae=Item&a=New&t=IPM.Note&email=mailto:joe%40joe.com,dave%40joe.com

This can be extended to fill in any item (To, CC, BCC, Subject, Body). To make OWA 2010 take any arbitrary mailto: command, take the entire mailto: string ("mailto:blah......blah..........blah"), pass it through urlencode(), and then add it to the end of this "https://xxxxx.outlook.com/owa/?ae=Item&a=New&t=IPM.Note&email=". Note that this means the URL encoded items inside of the mailto: command will get URL encoded again. In the example above, the mailto: string doesn't have any ampersands or question marks so we can get away without having to encode the @ into %40, etc. If you login via the form interface, and you try to use the above links without encoding the @, you will get some sort of login failure. Best to always encode everything.

Unrelated comment: If you have Outlook 2010 on your machine and set as your default mail handler, it will handle normal mailto: commands, except that email addresses must be semi-colon separated. This appears to violate RFC 2368.

like image 105
dsmtoday Avatar answered Oct 16 '22 21:10

dsmtoday