Skip to content

Email integration

The EMAIL Integration card connects the project to your own email service. The project’s emails to clients and users are then sent from your address, through your SMTP server or your Microsoft 365 mailbox. Without an email integration, Cellosign sends them through its own email service, from Cellosign’s addresses.

Add an email integration, for example, when:

  • your clients should get emails from an address of your organization that they know;
  • your IT policy requires emails to go through your own mail system, where they are recorded;
  • your Microsoft 365 tenant blocks SMTP sign-in, and applications must send with OAuth2.

The card is shown when email integrations are included in your organization’s plan, to users with the Implementer, Project manager or Organization manager role. Each project has its own email integrations.

Select the delivery mode in Email Delivery Mode:

Mode When to use it
SMTP Your organization’s SMTP server or relay. See Setting up SMTP.
Microsoft Graph sendMail A Microsoft 365 tenant that doesn’t allow SMTP sign-in (SMTP AUTH). Cellosign sends through Microsoft Graph with an OAuth2 token. See Setting up Microsoft Graph sendMail.
Column What it shows
Name The name of the integration. A warning icon before the name marks an SMTP integration without authentication (“This integration sends email without authentication”).
Delivery mode SMTP or Microsoft Graph sendMail.
Sender Email The Sender of the integration.

To open the form of an integration, click its edit button (the pencil). Click it again to close the form.

  1. In the left menu, click Integrations.
  2. In the EMAIL Integration card, click Add. A row named “default” is added to the list, and the form opens below it.
  3. Keep Email Delivery Mode on SMTP, and fill in the settings below.
  4. Click Save. The button is available when all the required settings are filled in.

The EMAIL Integration card with a new SMTP integration: sender, fallback, host, port, TLS and simple authentication

Setting What it does
Name (the first box) A name for the integration, shown in the list. Default: “default”. Required. Some emails can be sent through an integration by its name, see Several integrations and fallback.
Email Delivery Mode SMTP.
Sender The From address of the emails. Required. Enter an address, or a name and an address, for example Tidewell Lending <forms@example.com>. Use an address that your server is allowed to send from.
Use system wide SMTP fallback When the project’s email integrations can’t send an email, Cellosign sends it through its own email service, from Cellosign’s address. Default: off.
Host Under Connection. The host name of your SMTP server, for example smtp.example.com. Required. With SSL or TLS, enter a host name and not an IP address: the server’s certificate is checked against the name.
Port The port of the server, 1 to 65535. Required. Usually 587 with TLS, or 465 with SSL. Port 25 isn’t supported on Cellosign cloud installations.
SSL Encrypts the connection from the start (implicit TLS). Turning it on turns off TLS. Default: off.
TLS Connects and then switches to an encrypted connection (STARTTLS). Turning it on turns off SSL. Default: off.
Authentication type Under Authentication, the list that starts with “– select type –”. Simple: Cellosign signs in to the server with a user name and a password. NO AUTH: no sign-in. Required.
User Shown for Simple. The user name on your server. Required.
Password Shown for Simple. Required. The saved password isn’t shown again: when you edit the integration, enter the password again before you save.

With SSL and TLS both off, emails are sent without encryption. Turn on the one that your server supports. Cellosign waits up to 30 seconds for the server to answer.

In this mode, Cellosign doesn’t connect to an SMTP server. It gets an OAuth2 token from your Microsoft Entra ID (Azure AD) tenant with the client credentials (app-only) flow, and sends each email through the Microsoft Graph API, from the mailbox you set as the sender. All of Cellosign’s emails are supported: invitations, reminders, results and failure reports.

Before you set up the integration, your Azure administrator prepares the following in your tenant:

  1. An app registration, with a client secret.
  2. The application permissions Mail.Send and Mail.ReadWrite, with admin consent of the tenant. Mail.ReadWrite is needed to send emails with large attachments (see Good to know).
  3. An Application Access Policy that limits the application to the sender mailbox or mailboxes. This keeps the application from sending as other users of your organization.

Cellosign uses these Microsoft Graph calls:

Graph call HTTP Permission
Send mail POST /users/{sender}/sendMail Mail.Send
Create draft POST /users/{sender}/messages Mail.ReadWrite
Add inline attachment POST .../messages/{id}/attachments Mail.ReadWrite
Create attachment upload session POST .../attachments/createUploadSession Mail.ReadWrite
Upload attachment chunks PUT {uploadUrl} None (pre-authenticated address, no token)
Send draft POST .../messages/{id}/send Mail.Send (draft created with Mail.ReadWrite)
Delete draft DELETE .../messages/{id} Mail.ReadWrite

Step 1: Create the Microsoft Graph credential

Section titled “Step 1: Create the Microsoft Graph credential”

The details of your app registration are kept in a Client Secret of the same project:

  1. In the Client Secret card, click Add.
  2. In Type, select Microsoft Graph REST API v1.0, and enter your tenant’s details, the client ID and the client secret of the app registration. See Secrets.
  3. Click Save.
  1. In the EMAIL Integration card, click Add.
  2. In Email Delivery Mode, select Microsoft Graph sendMail. The connection and authentication settings are replaced by the credential list.
  3. Fill in the settings below, and click Save.

The EMAIL Integration card with a new Microsoft Graph sendMail integration and the Azure AD Credential (msgraph) list

Setting What it does
Name (the first box) A name for the integration, shown in the list. Default: “default”. Required.
Sender The mailbox that the emails are sent from, for example forms@example.com. It must be a real mailbox of your tenant, included in the Application Access Policy. Required.
Use system wide SMTP fallback When Microsoft Graph doesn’t accept an email, Cellosign sends it through its own email service, from Cellosign’s address. We recommend turning it on, so that emails are still sent when Microsoft Graph isn’t available. Default: off.
Azure AD Credential (msgraph) The Client Secret from step 1. The list shows the project’s active Client Secrets of the Microsoft Graph type. Required.
  • Large attachments. An email of about 3 MB or more is sent through a draft and an upload session. This is why Mail.ReadWrite is needed. The size limits of your Microsoft 365 tenant apply.
  • Audit log. Each token that Cellosign gets, and the result of each email (success or failure), are written to the project’s audit log. Recipient addresses are masked. A failure is recorded before the fallback is tried, so you see it even when the fallback sends the email.
  • Keep the credential valid. Client secrets in Azure expire. Create a new one in Azure before that, and update the Client Secret in Cellosign. Don’t delete or deactivate the Client Secret while an email integration uses it.
  • Error 401 or 403 from Microsoft Graph: check that the client secret is valid and not expired, that the Mail.Send and Mail.ReadWrite application permissions have admin consent, and that the Application Access Policy includes the sender mailbox.
  • Large emails fail and small ones are sent: the Mail.ReadWrite permission is probably missing. It is needed for the draft and upload session of large attachments.
  • To go back to SMTP: add an SMTP integration and delete the Microsoft Graph one. See Several integrations and fallback.

At the bottom of the form, under Test connection:

  1. In Recipient, enter your email address.
  2. Click Test.

Cellosign sends a test email (“Test mail”) from Sender to the recipient, with the settings in the form, also before you save them. The test uses only this integration, without fallback. In Microsoft Graph sendMail mode it also gets a token from your tenant, so it checks the whole setup. The result appears below the button: “Connection successful”, or the error that the server or Microsoft Graph returned.

When you test a saved SMTP integration and leave Password empty, the saved password is used.

  • Edit: click the edit button (the pencil) of the integration, change the settings and click Save. For an SMTP integration with Simple authentication, enter the password again.
  • Delete: open the integration, click Delete, and click Delete in Confirm Delete. Emails that were sent through it by name are then sent through the project’s other integrations.
  • Discard a new integration: the form has no cancel button. Click Delete in the form: only the new row is removed, and nothing is saved.

When the project has email integrations, Cellosign sends the project’s emails through them, for example:

  • invitations to fill in a form, reminders, and one-time passwords (OTP) sent by email;
  • the signed documents and results sent to clients and agents at the end of a transaction;
  • the emails of Message (Email/SMS) elements in workflows;
  • other emails of the project, such as two-step verification codes of users.

You don’t select an email integration in a template. In a workflow Message (Email/SMS) element of the Email kind, Sender lists the project’s email integrations by their sender address, and the element sends through the one you select. The reply-to address of emails to clients is set in the project’s Messages card, in Client mail to reply e-mails to.

A project can have several email integrations, as backups for each other:

  1. Cellosign sends through the integration that was added last.
  2. If it can’t send the email, Cellosign tries the other integrations, from the newest to the oldest. The email is then sent from the Sender of the integration that takes over.
  3. If none of them can send it, and Use system wide SMTP fallback is on in the integration that was added last, Cellosign sends the email through its own email service.

To send some emails through a specific integration, give it one of these names:

Name Emails sent through it
invite Invitations, reminders and one-time passwords.
result Signed documents and results.

When the project has an integration with this name, Cellosign uses only it for these emails, and its fallback if it is on. A workflow Message (Email/SMS) element that selects an integration in Sender works in the same way. All other emails go through all of the project’s integrations.

Integrations of the two delivery modes don’t back each other up. If the integration added last uses Microsoft Graph sendMail, Cellosign sends only through it (and its fallback). If it uses SMTP, the Microsoft Graph integrations of the project are skipped. Use one delivery mode in a project.

An email fails when the server or Microsoft Graph refuses it or doesn’t answer. When no integration, and no fallback, can send it:

  • an invitation isn’t sent, and its address in the transaction’s Destination doesn’t get a check mark;
  • when the signed documents can’t be sent, the transaction shows a red X, and Mail to Client or Mail to Agent in its details show the error (see Transactions);
  • a workflow Message (Email/SMS) element fails, and so does its process.

When the server accepted an email, Cellosign can’t tell whether it reached the recipient’s inbox. See Client did not receive email or SMS.