简体   繁体   English

PHP DocuSign:如何格式化签名者自定义 email 正文?

[英]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.我已经为每个签名者设置了一个单独的 email 主题和 email 正文,如下所示,它工作正常。 $pdEmailBody contains plain text as it doesn't take HTML formatting. $pdEmailBody 包含纯文本,因为它不采用 HTML 格式。

Now when recipient getting the email, the email body is not formatted right.现在,当收件人收到 email 时,email 正文的格式不正确。 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.我想知道如何设置 email 正文的格式,以便所有文本都保持对齐并且没有缩进。

在此处输入图像描述

$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
                ])
            ]);

I just tested this and I'm not seeing this.我刚刚测试了这个,但我没有看到这个。 You need to use "\n\r" in your string to specify a new line.您需要在字符串中使用"\n\r"来指定一个新行。 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.请检查传递给email_body的字符串(结束字符串,不是带有变量的字符串,实际值)并确认。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM