Monday, October 24, 2011

Send mail functionality on infopath hyperlink

Infopath can not provide send e-mail functionality similar to sharepoint designer workflow. But here is the workaround for this,

Insert hyperlink control on form and add MailTo protocol into data source part of the hyperlink.

e.g. concat('mailto:',my:Author/pc:Person/pc:AccountId,'?subject=Subject line &','body=Text goes here....')

mailto supports url encodes for inserting special characters. E.g.Use %26 to insert &, %23 to insert #, %24 to insert $ etc...

Please see below links for
more url encodes,

http://www.w3schools.com/tags/ref_urlencode.asp

more Mailto syntax,

http://www.addressmunger.com/mailto_syntax_tutorial/

No comments:

Post a Comment