File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
src/Services/Examples/eSignature Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1111 color: darkblue; "> Order Processing Division</ h2 >
1212 < h4 > Ordered by {USER_FULLNAME}</ h4 >
1313 < p style ="margin-top:0em; margin-bottom:0em; "> Email: {USER_EMAIL}</ p >
14+ < p style ="margin-top:0em; margin-bottom:0em; "> Copy to: {CC_NAME}, {CC_EMAIL}</ p >
1415 < p style ="margin-top:3em; ">
1516Candy bonbon pastry jujubes lollipop wafer biscuit biscuit. Topping brownie sesame snaps sweet roll pie. Croissant danish biscuit soufflé caramels jujubes jelly. Dragée danish caramels lemon drops dragée. Gummi bears cupcake biscuit tiramisu sugar plum pastry. Dragée gummies applicake pudding liquorice. Donut jujubes oat cake jelly-o. Dessert bear claw chocolate cake gummies lollipop sugar plum ice cream gummies cheesecake.
1617 </ p >
Original file line number Diff line number Diff line change @@ -99,6 +99,10 @@ private static function makeEnvelope(
9999 'enforce_signer_visibility ' => 'true ' ,
100100 'email_subject ' => "Please sign this document set " ,
101101 'documents ' => SetDocumentsVisibilityService::_prepareDocuments (
102+ $ signer1Email ,
103+ $ signer1Name ,
104+ $ ccEmail ,
105+ $ ccName ,
102106 $ docPdf ,
103107 $ docDocx ,
104108 $ docHTML ,
@@ -180,6 +184,10 @@ private static function _prepareSigners(
180184 }
181185
182186 private static function _prepareDocuments (
187+ string $ signer1Email ,
188+ string $ signer1Name ,
189+ string $ ccEmail ,
190+ string $ ccName ,
183191 string $ docPdf ,
184192 string $ docDocx ,
185193 string $ docHTML ,
@@ -188,6 +196,10 @@ private static function _prepareDocuments(
188196 $ contentBytesPdf = file_get_contents ($ demoPath . $ docPdf );
189197 $ contentBytesDocx = file_get_contents ($ demoPath . $ docDocx );
190198 $ contentBytesHtml = file_get_contents ($ demoPath . $ docHTML );
199+ $ contentBytesHtml = str_replace ("{USER_EMAIL} " , $ signer1Email , $ contentBytesHtml );
200+ $ contentBytesHtml = str_replace ("{USER_FULLNAME} " , $ signer1Name , $ contentBytesHtml );
201+ $ contentBytesHtml = str_replace ("{CC_EMAIL} " , $ ccEmail , $ contentBytesHtml );
202+ $ contentBytesHtml = str_replace ("{CC_NAME} " , $ ccName , $ contentBytesHtml );
191203
192204 $ documentHTML = new Document (
193205 [
You can’t perform that action at this time.
0 commit comments