' + SUB_TITLE.replace('[SUB_TITLE]', stageName);
+
+ /**************************************************
+ Comments: for each stage we call buildEmailStageTable
+ **************************************************/
+ stageTable += '| ' + buildEmailStageTable(stageName, stagedOpportunities.get(stageName)) + ' |
';
+
+ /**************************************************
+ Comments: for each stage we call getEmailStageComments (if there are no comments, the input text is generated anyway)
+ **************************************************/
+ stageTable += '| ' + getEmailStageComments(stageComments.get(stageName)) + ' |
';
+
+ stageTable += '