PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, August 26, 2022

[FIXED] How to pass Docusing email EmailBlurb for each signer?

 August 26, 2022     docusignapi, vb.net     No comments   

Issue

I have create envelope and pass signer,document, position to sign.So in that i need to pass EmailBlurb for each signer separately.Form Docusing web ui can set using following option and each signer get different message. enter image description here

So how to pass this message from Docusing code, here the piece of code which i pass 2 signers

Private Function MakeEnvelope(ByVal signerEmail As String, ByVal signerName As String) As EnvelopeDefinition
Dim buffer As Byte() = System.IO.File.ReadAllBytes(Config.docPdf)
Dim envelopeDefinition As EnvelopeDefinition = New EnvelopeDefinition()
envelopeDefinition.EmailSubject = "Please sign this document"
envelopeDefinition.EmailBlurb ="Dear. A Thanks and regards"  ' this will appear for both signer
Dim doc1 As Document = New Document()
Dim doc1b64 As String = Convert.ToBase64String(buffer)
doc1.DocumentBase64 = doc1b64
doc1.Name = "Lorem Ipsum"
doc1.FileExtension = "pdf"
doc1.DocumentId = "1"

envelopeDefinition.Documents = New List(Of Document) From {
    doc1
}
Dim signer1 As Signer = New Signer With {
    .Email = signerEmail,
    .Name = signerName,
    .ClientUserId = signerClientId,
    .RecipientId = "1"
}
Dim signer2 As Signer = New Signer With {
    .Email = signerEmail2,
    .Name = signerName2,
    .ClientUserId = signerClientId2,
    .RecipientId = "2"
}

This will appear for both signer as same message, i need to make each signer name need to show there.

envelopeDefinition.EmailBlurb ="Dear. A Thanks and regards" 

Solution

This article shows how to do that in six langs, including C#. I have converted the C# to VB.NET for you and here it is:

Dim signer1 As Signer = New Signer With {
    .Email = "inbar@example.com",
    .Name = "Inbar Gazit",
    .RecipientId = "1",
    .RoutingOrder = "1",
    .EmailNotification = New RecipientEmailNotification With {
        .EmailSubject = "Custom email subject for signer 1",
        .EmailBody = "Custom email body for signer 1"
    }
}Z


Answered By - Inbar Gazit
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing