如何通过编程方式移除DocuSign签署通知邮件中的发件人姓名与邮箱地址?
Great question! Let’s break down how you can remove the default sender details and template text from DocuSign signing emails using just API calls—no need to edit brand resource files.
Can you remove sender name/email from the email?
Absolutely, but it depends on which part of the email you’re targeting:
- Email header (From field): This is tied to your DocuSign account settings, so you can’t fully remove it (it needs to be a valid sender linked to your account). However, you can customize the displayed name using the
senderDisplayNameparameter in your envelope creation request. If you want to minimize this, you can set it to an empty string (though double-check your account’s restrictions—some may require a non-empty display name). - Email body content: You can completely eliminate any mention of the sender’s name/email by overriding the default email text with your own custom content.
How to remove the default template text ("您好[收件人姓名]、请签署[文档名称]、谢谢、[发件人姓名]")
The key here is to use the emailBlurb parameter in your EnvelopeDefinition when creating the envelope via API. This parameter lets you replace the entire default email body with whatever text you want—so you can skip all the default greeting, document prompt, and sign-off lines entirely.
Example API Payload (JSON)
Here’s a simplified snippet showing how to set this up:
{ "emailSubject": "Action Required: Complete Your Signatures", "emailBlurb": "Please review and sign the attached document at your earliest convenience.", "senderDisplayName": "", // Optional: Set to empty if your account allows "recipients": { "signers": [ { "email": "signer@example.com", "name": "John Doe", "recipientId": "1", "tabs": { // Add your signing tabs here (e.g., signHere, dateSigned) } } ] }, "documents": [ { "documentId": "1", "name": "Contract.pdf", "documentBase64": "base64-encoded-document-content" } ], "status": "sent" }
Notes:
emailBlurbsupports basic HTML formatting, so you can structure your email content however you like (e.g., add line breaks, bold text) without relying on DocuSign’s default template.- All these settings override any global brand defaults—so you don’t need to touch your account’s brand resource files at all.
Final Verdict
Yes, you can absolutely remove the default sender details (from the email body) and replace the entire default email text using DocuSign’s API. No brand resource file edits are required—just customize the emailBlurb and senderDisplayName parameters in your envelope creation request.
内容的提问来源于stack exchange,提问作者anonymous

