locked
customize the email body of the html file of a workflows tasks in C# RRS feed

  • Question

  • I need to customize the message body and subject in an email that notifies the USER of the creation of a new task, must also modify the look of the html just the whole workflow is in C #. Some code to do this?

    Thursday, March 29, 2012 5:41 PM

Answers

  • Format your email body using below code.

    Sting body  = "<TABLE BORDER=1 CELLPADDING=2>"
                body += "<TR><TH>Field</TH><TH>Description</TH></TR>";
                body += "<TR><TD>Time</TD><TD>" + Date.Now.ToString() + "</TD></TR>";
                body += "<TR><TD>User Login</TD><TD>" + Application.User.LoginName + "</TD></TR>";
                body += "</TABLE>";
    



    Dare to promise

    Thursday, March 29, 2012 6:11 PM