dimanche 8 février 2015

HTML button in the eMail notification sent by Workflow



I have a workflow which send eMail notification to the users. I want to add 2 HTML buttons for approve and reject on this email notification.


For this I have embedded the following HTML snippet in the advanced properties (Message Body) of the email action in the workflow -



<!DOCTYPE html><HTML xmlns="http://ift.tt/qQdaDR" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:m = "http://ift.tt/r6iG4b"><HEAD><TITLE></TITLE> <META content="text/html; charset=us-ascii" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 10.00.9200.17183"></HEAD> <BODY> <P><IMG style="TEXT-ALLIGN: left" src="../Site%20Assets/abc_icon.png"></P> <P><STRONG>******************************************<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Styled Workflow eMail<BR>******************************************</STRONG></P> <P><STRONG>Full Name: [%Current Item:FullName%]</STRONG></P><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas> <P></FONT></FONT></FONT><INPUT id=btnApprove type=button value=Approve>&nbsp;&nbsp;<INPUT id=btnReject type=button value=Reject></P></BODY></HTML>


workflow email html snippet


However when the user receives the mail, the buttons appear as plain text - email from workflow


Moreover as you can see, the image at the top of the mail is also missing.


Am I missing any specific configuration? Is there anything more that needs to be done to render a HTML button and images in an email generated from a workflow? I would appreciate, if anyone could please help me resolve this issue.








0 commentaires:

Enregistrer un commentaire