All Collections
Integrations
Email provider
Mandrill (by Mailchimp) Integration
Mandrill (by Mailchimp) Integration

How to use your own Mandrill account for sending emails

Updated over a week ago

keyper sends emails via the transactional mail-service Mandrill (by Mailchimp). Per default all emails are sent via keypers account, so you don´t have to bother setting up your own accounts and can get started quickly. However, if you want to have more control over your mails sent or already have your own Mandrill account, keyper provides the possibility to simply use other accounts.

How do I set up my Mandrill account?

API Keys

First, you should create two different API keys (Settings -> New API Key). You need one key for the production environment and (optionally) one key for the test and development environment. Name them e.g. keyper-test and keyper-live.

Subaccounts

Next you have to setup two sub-accounts (Outbound -> Subaccounts). One for the production environment (e.g. keyper-live) and one for the test and development environment (e.g. keyper-test).

Webhooks

Then go to Settings -> Webhooks and create two webhooks.

Triggers: none
Post to URL: https://sandbox.api.keyper.io/svc/mandrill/problems (test environment) and https://api.keyper.io/svc/mandrill/problems (production environment).

Description: give it a name

After creating the webhooks please note the keys as you will need them later on.

Rules

After setting up your subaccounts and webhooks, you should define some rules (Outbound -> Rules) in order to send the correct webhooks notifications to keyper.

You will have to create 4 rules:

  1. if a message is bounced and any of the following conditions are met
    api key is keyper-test
    then do this:
    send event to webhook https://sandbox.api.keyper.io/svc/mandrill/problems

  2. if a message is soft-bounced and any of the following conditions are met
    api key is keyper-test
    then do this:
    send event to webhook https://sandbox.api.keyper.io/svc/mandrill/problems

  3. if a message is bounced and any of the following conditions are met
    api key is keyper-live
    then do this:
    send event to webhook https://api.keyper.io/svc/mandrill/problems

  4. if a message is soft-bounced and any of the following conditions are met
    api key is keyper-live
    then do this:
    send event to webhook https://api.keyper.io/svc/mandrill/problems

Send data to keyper

Currently it´s not possible to configure these settings in the business webapp yourself. However, be ensured that´s already on our roadmap.

Meanwhile please send the following information to support@keyper.io:

  • Test environment API Key

  • Production environment API Key

  • Name of Test subaccount

  • Name of Production subaccount

  • Test webhook key

  • Production webhook key

You didn´t find what you were looking for or need support? Please visit our Help Center for more articles or contact us.

Did this answer your question?