JPsOneSpan

Automatically email the evidence.pdf once signing completes

0 votes

I know how to retrieve the evidence pdf with the below code:

    byte[] evidenceContent = eslClient.downloadEvidenceSummary(packageId);
    Files.saveTo(evidenceContent, "evidence.pdf");

But don't know how to let OSS to automatically email the singers the evidence.pdf once the signing is completed. My below code just attached the complete document pdf to the email, the evidence pdf was not attached. Thanks for your help!

    apiClient = new EslClient(ApiTokenConfig.newBuilder()
            .clientAppId(username)
            .clientAppSecret(password)
            .baseUrl(baseUrl)
            .tokenType(TokenType.OWNER).build(),
            baseUrl + "/api", false, null, false, new HashMap<String, String>());
    apiClient.getAccountConfigService()
            .getAccountFeatureSettings()
            .setEmailDocumentsAndEvidenceSummary(true);
            
    ...
    
    documentPackage.addSigner(SignerBuilder
            .newSignerWithEmail(emailAddress)
            .deliverSignedDocumentsByEmail()
            .withFirstName(fname)
            .withLastName(lname)
            .signingOrder(signingOrder)
            .build());

Regards,

Jianping Xu (J.P.)

Bonterra (formerly, CyberGrants)


Approved Answer

Reply to: Automatically email the evidence.pdf once signing completes

0 votes

Hi Jianping,

 

This is because in normal scenarios, the evidence summary won't be delivered to external signers (especially if there are sensitive information about other signers). If you want to implement the function, you may have to deliver the file via your own email service.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Automatically email the evidence.pdf once signing completes

0 votes

Got it. Thank you Duo!

Regards,

Jianping Xu (J.P.)

Bonterra (formerly, CyberGrants)


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off