Sometimes you just want to place a MailTo Link on an InfoPath Form. This link only open your favorite mail client application and fields like subject, body or mailto are filled out by data from the InfoPath form.
Just add a hyperlink button to your InfoPath form and add something similar to the pseudo syntax:
concat(“mailto: “; “MailAdress” ; “?subject=ANYWORDS &body=ANYBODY, “%0D%0A%0D%0A” , “ANYBODY NEXT LINE”)
That’s it. Now you are able to click on a link within InfoPath and a new mail message will be open by e.g. Outlook.
For special chars in mail body use the following ASCII Table:
& => %26
CR => %OD
The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.
Dennis de Vries
Loving SharePoint, Social Media and like to work together with creative people all over the world.