Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

PHP DocuSign: How to format the signer custom email body?

I’ve setup a separate email subject and email body for each signer pragmatically like below and it’s working fine.
$pdEmailBody contains plain text as it doesn’t take HTML formatting.

Now when recipient getting the email, the email body is not formatted right. Every paragraph has automatic ‘indent’ (please see the picture).

I would like to know how I format the email body so that all text will be left align and no indent.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

$signer1 = new \DocuSign\eSign\Model\Signer([
                'email' => $pdEmail, 
                'name' => $pdName,
                "recepient_id" => "1",
                'routing_order' => "1",
                'email_notification' => new \DocuSign\eSign\Model\RecipientEmailNotification([
                    'email_subject' => $pdEmailSub,
                    'email_body' => $pdEmailBody
                ])
            ]);

>Solution :

I just tested this and I’m not seeing this. You need to use "\n\r" in your string to specify a new line.
You probably are using some other string that includes these tabs or other marks that create this. Please check the string (end string, not the one with variables, the actual value) that is passed to email_body and confirm.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading