Getting Started with MailTo Ever wonder how you click on a link and like magic it opens Outlook and has an email formatted with the To, Subject and a message already filled in? Below we provide a few details on how just to do that. The Code This opens the user’s default mail program, creates a new message with the TO .