Email attachments to DocuSign automatically: send documents for signature and file the signed copies

Send email attachments to DocuSign automatically: Mail Attachment Downloader makes the envelope, adds signers and anchors, and files the signed PDF.

Mail Attachment Downloader's Send for signature step on the rule Contracts to sign: the Contoso DocuSign connection, two signers (Acme Legal from the email, order 1, signing at /sn1/; Contoso Finance, order 2) and a copy to Contoso Legal, the subject Please sign: {SUBJECT} and a message

To send email attachments to DocuSign automatically, let a rule pick the emails and add the Send for signature step. Mail Attachment Downloader makes a DocuSign envelope of each saved file (or of all the email’s files), sends it to the signers you name or the ones the email names, and can place the signature on a marked spot. When everybody has signed, a DocuSign watch takes the signed PDF back and your rules file it like an attachment.

New in version 4.0. The examples use Contoso’s mailbox contracts@contoso.com, contracts from Acme and Fabrikam, and the folder \\fileserver\Contracts\Signed.

What can you automate with DocuSign?

  • Contracts from sales: a signed-off contract emailed to contracts@contoso.com goes to the customer for signature, then to your manager.
  • Supplier agreements: Acme sends its agreement; Contoso’s signer gets it at once, without anyone uploading it to DocuSign.
  • Forms from a system: an HR or ERP system emails a PDF to sign; it goes out with a DocuSign template’s roles.
  • The signed copies: completed envelopes are saved, renamed and filed, or sent on to DocuWare, Laserfiche or M-Files.

What you need

  • The edition: PRO Rules Client or PRO Rules Server. Send for signature and the DocuSign watch are part of PRO Rules.
  • DocuSign: an account that may send envelopes, on the production service or in DocuSign’s demo sandbox to try it first.
  • Windows: Windows 10 or later, 64-bit, on a PC, a server or a cloud VM.
  • The mailbox: Gmail, Google Workspace, Microsoft 365, Outlook.com, Exchange, or any IMAP or POP3 mailbox.

Step 1: Connect DocuSign once

Open Settings › Sources › Document Management, click Add… and choose DocuSign. You need an integration key, which you add in DocuSign under Settings › Apps and Keys; Where to find these values shows where each value is. Sign in with offers two ways:

  • Integration key with the user’s consent: nobody has to be signed in, also when the Windows service runs it. Enter the Integration key, the API user ID and the key’s RSA Private key (or Load file…), then click Give consent… once and allow it as the API user.
  • Sign in in the browser: you sign in at DocuSign as yourself. The sign-in is kept, encrypted, and renewed on its own.

Leave Environment empty for production, or enter demo for the developer sandbox. List finds the Account. Name the connection, such as “Contoso DocuSign”, and click Test.

New DocuSign connection window in Mail Attachment Downloader for DocuSign automation: Sign in with Integration key with the user's consent, Environment production or demo, Account with List, Integration key, API user ID, Private key with Load file, Redirect port, Give consent and Test
A DocuSign connection: production or the demo sandbox, with nobody signed in.

Step 2: Add Send for signature to a rule

  1. On the PRO Rules tab, click New rule…. Under Which emails, add a condition, such as “to sign” in the subject, or the folder Contracts. New to rules? Save emails and attachments to folders walks through one.
  2. Under Save, save the attachments. Only PDFs? Add an attachment name condition such as \.pdf$.
  3. Under Then, click Add a step…, open Other systems and double-click Send for signature.
Add a step window with Other systems chosen: Send for signature sends the saved files for signature with DocuSign, next to Upload to cloud, Send to document management, Send to Zapier and Web hook
Add a step › Other systems › Send for signature.

Signers, routing order and signature anchors

Pick the Connection (Manage… adds one). Under Recipients, the step starts with one signer: the email’s sender. Add a signer adds more, and Add a copy adds someone who gets the signed document but doesn’t sign. For each one:

  • Name and Email: fixed, such as legal@contoso.com, or from a field. {EMAIL_FROM} is the sender’s address; a field the rule found, such as {SIGNER_EMAIL} from the contract, works too.
  • Order: the routing order. Signers with the same number are asked together; a higher number is asked after the lower ones signed. With 0, signers are asked together and copies go after them.
  • Where it’s signed: a signature anchor, text in the document such as /sn1/, where this signer’s signature goes. Empty: the signer places it.

Then the envelope itself:

  • Subject and Message: what DocuSign’s email says, with fields if you like. An empty subject reads “Please sign:” and the file’s name.
  • Each envelope holds: one saved file (each attachment is an envelope), or the email’s saved files together in one envelope.
  • Leave it as a draft in DocuSign: a person checks the envelope in DocuSign and sends it.
  • Test the connection: signs in and finds the account (and the template). It sends nothing.
Mail Attachment Downloader's Send for signature step on the rule Contracts to sign: the Contoso DocuSign connection, two signers (Acme Legal from the email, order 1, signing at /sn1/; Contoso Finance, order 2) and a copy to Contoso Legal, the subject Please sign: {SUBJECT} and a message
Send for signature: signers from the email or fixed, their order, and where each one signs.

DocuSign templates and roles

Already have a DocuSign template with its fields and tabs? Click List the templates and choose it under Template. Each recipient then takes one of the template’s roles in Template role, such as Client or Manager, with the name and email filled from the email or fixed.

No envelope sent twice

If the email comes again, for example after a Redo, the default sends nothing while an envelope is out for the file. You can send another only if the earlier one was voided, declined or timed out, or send one each time. Before you turn the rule on, click Test this rule…: it shows which emails the rule picks and only describes the envelope, without sending it.

Test rule window in Mail Attachment Downloader: emails from Acme, Northwind and Fabrikam marked Matched, Taken by another rule or Not matched; steps that reach outside the computer, such as sending for signature, are only described
Test this rule: see which emails would be sent for signature, without sending anything.

Step 3: Take the signed documents back with a DocuSign watch

A watch works like a mail account whose new items are completed envelopes. Open Settings › Sources › Watches, click Add… and choose DocuSign: signed envelopes.

  • DocuSign connection: the same connection (New… adds one).
  • Take: The signed documents as one PDF, Each document, and The certificate of completion if you keep it.
  • Envelopes: only the envelopes sent by Send for signature, or all of them. Sent by limits it to one sender’s envelopes.
  • When it runs: Run as soon as something changes, with a check every 60 seconds. A new watch takes only envelopes completed after it is saved, unless you tick Also take the envelopes already completed.
DocuSign watch window (DocuSign: signed envelopes): DocuSign connection, Take the signed documents as one PDF, each document or the certificate of completion, only the envelopes sent by Send for signature, Sent by, Run as soon as something changes, Seconds between checks 60
The DocuSign watch takes completed envelopes, signed PDFs and all.

Each completed envelope then goes through your PRO Rules like an email from its sender, with the signed documents as the attachments. In a rule for the watch (an Account condition with the watch’s name), Which emails reads Which envelopes, and fields such as {DOCUSIGN_SIGNERS}, {DOCUSIGN_COMPLETED} and {DOCUSIGN_ENVELOPE_ID} name and file the PDF, for example in \\fileserver\Contracts\Signed\{DATE[yyyy]}. Steps such as Upload to cloud or Send to document management can follow. The watch has History too, so an envelope is taken once.

Questions people ask

Can I send an email attachment to DocuSign automatically without opening DocuSign?

Yes. The rule makes and sends the envelope on its own. Tick Leave it as a draft in DocuSign if someone should look first.

Does it work with the DocuSign developer sandbox?

Yes. Enter demo as the Environment of the connection; leave it empty for production.

Does it work with Adobe Sign or other e-signature services?

Not directly: DocuSign is the e-signature service the step supports. For others, a web hook or Zapier step can hand the file to their API.

Does the program have to run while people sign?

Only to send and to take the signed envelopes back. For 24×7, even when nobody is signed in, use the Windows service of PRO Rules Server with the integration key sign-in.

Try it: download Mail Attachment Downloader and start with the free edition, or compare the PRO editions, each with a 30-day money-back guarantee.

Related

Questions about this post? Contact us.