docusign / docusign-esign-php-client

The Official Docusign PHP Client Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.
https://www.docusign.com/devcenter
MIT License
198 stars 122 forks source link

[Need help] Prepared envelope registered but not sent to email #136

Closed Eugentis closed 3 years ago

Eugentis commented 3 years ago

Hi! I am just starting to work with your lib and need some help in first steps.

I need to have template for sending to defined in code recipients with prefilled data.

I have template with fullName field and one sign field image

In code I am creating new envelope. Code example is:

$envelopeDefinition = new \DocuSign\eSign\Model\EnvelopeDefinition(
            [
                'status' => 'sent',
                'template_id' => $templateId,
            ]
        );
        $signer = new \DocuSign\eSign\Model\TemplateRole(
            [
                'email' => $email,
                'name' => $name,
                'role_name' => 'signer',
                'client_user_id' => 1000,
                'tabs' => new \DocuSign\eSign\Model\Tabs(
                    [
                        'sign_here_tabs' => [
                            new \DocuSign\eSign\Model\SignHere(['tab_label' => 'sign'])
                        ]
                    ]
                )
            ]
        );
        $envelopeDefinition->setTemplateRoles([$signer]);

        $envelopeApi = new \DocuSign\eSign\Api\EnvelopesApi($authService->getAuthorizedApiClient());
        $envelopeApi->createEnvelope($accountId, $envelopeDefinition);

Envelope was created and it is displayed in manage tab in DocusignUI: image

In history there are only register event listed. I can't see any sending invitations event image

Could you explain what's wrong with my code?

Eugentis commented 3 years ago

One more moment - email was not received

Eugentis commented 3 years ago

Published at stack overflow https://stackoverflow.com/questions/67369044/need-help-prepared-envelope-registered-but-not-sent-to-email