0
votes

Is there a way to set the priority of an email using mailto? Or any alternatives (javascript, jQuery) that could set the priority?

At the moment I am creating emails using mailto to set the subject, body, recipient etc. But I can't figure out any way to set the priority from the mailto link(I am using outlook 2007).

I would be willing to to switch to something other than mailto if it means I can set the priority.

Thanks

1

1 Answers

1
votes

Yes in theory. The mailto specification accepts header keys and values so this might do the trick...

mailto:[email protected]?subject=test&X-Priority=1&X-MSMail-Priority=High&Importance=High

However mail clients behave very differently. Don't expect every client to support it. It failed my testing on OSX with Mail (which itself sets X-Priority:1 when I do it from within the client). Does it work for Outlook 2007?

Crafting mail headers might be better done with command line tools or a scripting language.