diff --git a/composite-envelope-builder/force-app/main/default/classes/DocusignCompositeEnvelopeBuilder.cls b/composite-envelope-builder/force-app/main/default/classes/DocusignCompositeEnvelopeBuilder.cls index 80558ec..26eb12d 100644 --- a/composite-envelope-builder/force-app/main/default/classes/DocusignCompositeEnvelopeBuilder.cls +++ b/composite-envelope-builder/force-app/main/default/classes/DocusignCompositeEnvelopeBuilder.cls @@ -230,7 +230,16 @@ global with sharing class DocusignCompositeEnvelopeBuilder { if (envelopeSubject.length() > 100) { envelopeSubject = envelopeSubject.left(97) + '...'; } - String envelopeBody = bodyParts.isEmpty() ? '' : String.join(bodyParts, '\n\n'); + // Compose body: greeting → template bodies separated by a visual divider → sign-off + String DIVIDER = '\n\n' + '─'.repeat(60) + '\n\n'; + String GREETING = 'Hello,\n\n'; + String SIGNOFF = '\n\nThank you,\nEarly Intervention Colorado'; + String envelopeBody; + if (bodyParts.isEmpty()) { + envelopeBody = GREETING + SIGNOFF; + } else { + envelopeBody = GREETING + String.join(bodyParts, DIVIDER) + SIGNOFF; + } myEnvelope = myEnvelope.withEmail(envelopeSubject, envelopeBody); // Send the envelope