I'm trying to build the content of an email that is sent via a Script Task rather than the standard Send Mail Task control. The string that goes in to the email content is quite long. I understand the issue with the maximum string length in an expression being 4000 characters. I thought I got round it by creating three string variables, populating them in expressions shorter than 4000 characters, and then having another variable which concatenates all three variables. On second thoughts, this was a little stupid in that the result of the expression of adding the three variables together could possibly still exceed 4000 characters. I've noticed from:
4000 limit blog
that it's not necessarily the limitation of the string variable that is 4000 characters, but the outcome of an expression.
Is there therefore, another means of populating a variable in this way please? Even if it's just a mechanism to populate the variable from concatenating the three variables mentioned above via a script task may be? Not too good on those really.