DataInvoices

Marketing · Get started

Connect your e-mail, SMS and WhatsApp

Set up your company's own e-mail service, SMS gateway and WhatsApp Business number for marketing, send a test to turn each one on, and see this month's usage.

Where: Marketing › Marketing Setup › Channels

Marketing messages go out through your company's own providers: your mail server or e-mail service, your SMS gateway and your WhatsApp Business number. Nothing is sent from a DataInvoices address, and your provider bills you directly for what you send.

Open Marketing › Marketing Setup › Channels. There is one card for each channel: E-mail, SMS and WhatsApp. Each card shows its state:

  • Not set up: no provider saved yet;
  • Not tested yet: saved, but no test has gone through;
  • On: a test went through and the channel can be used;
  • Off: it was tested, then turned off.

Set up a channel

  1. On the channel's card, choose a Provider. A short note under it says what that provider needs.
  2. Fill in the fields. Fields marked * are required.
  3. Click Save. The card now says Not tested yet.
  4. Send a test (see below). When the provider accepts it, the channel is On.

If you later change a saved channel, for example a new server or a new key, it turns off and needs a new test before it is used again.

E-mail providers

ProviderWhat you enter
Own mail server (SMTP)Server, Port (587 or 465), Security (STARTTLS, SSL or NONE), User name and Password
Amazon SES (SMTP)Region (for example eu-west-1), SMTP user name and SMTP password. The From domain must be verified in SES.
SendGridAPI key (it starts with SG.), with Mail Send access. Optional: Event webhook verification key, the public key from SendGrid's Signed Event Webhook.
MailgunSending domain, Region (US or EU) and API key. Optional: Webhook signing key.

Every e-mail provider also needs a From address on your company's own domain and a From name. A Reply-to address is optional.

SMS providers

  • Twilio: Account SID (it starts with AC), Auth token, and the From number or Messaging Service SID.
  • SMS gateway (HTTP): works with any SMS gateway that has an HTTP API. Enter:

- Send URL: a public https:// address; - Method (POST or GET) and Body (JSON, FORM or NONE); - a Body template and Headers (one per line, Name: value) as your gateway's guide shows them; - an API key / password, used wherever you write {secret}; - your Sender ID / number.

In the URL, body and headers, {to} is filled in with the mobile number, {text} with the message and {from} with your sender ID. Success check (JSON path) and Message id (JSON path) are optional. Without a success check, any success answer from the gateway counts as sent.

WhatsApp

WhatsApp Cloud API (Meta) uses your company's own WhatsApp Business number. From Meta's WhatsApp Manager, enter:

  • the Phone number ID and the WhatsApp Business Account ID;
  • The number, as customers see it (optional);
  • a Permanent access token, a system user token with the whatsapp_business_messaging permission;
  • the App secret, which signs Meta's delivery reports;
  • a Webhook verify token (optional): any text you choose. Meta asks for it when you add the delivery address.

Once WhatsApp is saved, click Read templates from Meta under WhatsApp templates. You see each template's Name, Language, Category and Status. Marketing on WhatsApp uses only templates Meta has approved.

Passwords and keys

Passwords, API keys and tokens are stored encrypted and are never shown again. A saved one shows as set •••• with its last four characters. To change it, click Replace, type the new one and click Save. Leave a secret alone to keep it.

Send a test

A channel turns on only after its provider accepts a test message.

  1. Under Send a test, enter the e-mail address or mobile number to send it to.
  2. For e-mail you can add a Subject and Text; for SMS, a Text. For WhatsApp, enter an approved Template and its Language.
  3. Click Send test.

The card shows when the last test was sent and what the provider answered. If the provider refused it, its reason is shown and the channel stays off. Fix the setting and try again.

Turn off stops a channel without losing its settings. Turn on starts it again. Remove deletes the channel and its saved keys. Removing WhatsApp also clears its templates.

Delivery reports

SendGrid, Mailgun, Twilio, the SMS gateway and WhatsApp can tell DataInvoices what happened to each message. Under Delivery reports:

  1. Click Make the address.
  2. Click Copy. The address is shown only once.
  3. Paste it into your provider's settings as the delivery or status webhook.

To get a new address, click Make a new address (the old one stops working), then paste the new one into your provider.

With delivery reports set up:

  • an e-mail that bounces for good, or a spam complaint, adds the address to the do-not-contact list;
  • a reply of STOP (or UNSUBSCRIBE, CANCEL, END, QUIT or STOPALL) by SMS or WhatsApp records an opt-out (Replied STOP) for that channel.

See Consent, opt-outs and do-not-contact.

Your plan's monthly limit

Each card shows this month's usage. For example, 120 sent this month · 4,880 of 5,000 left, or no limit on your plan when your plan has no limit for that channel. The month follows your company's time zone.

If something is missing

If the page says Marketing channels aren't set up on this server yet, nothing can be saved or sent. Raise a support ticket.

Still stuck? E-mail [email protected] or open Administration › Settings › Support Tickets in the app.