Installation
Requirements
This extension requires:
- CiviCRM 4.4, 4.6 or higher
- PHP version 5.4 or higher, with the curl extension enabled
Installation instructions
-
Configure CiviCRM extensions parameters (if not done already)
- Go to Administer > System Settings > Directories, set the CiviCRM Extensions Directory to a folder that is writable by your web server process
- Go to Administer > System Settings > Resource URLs, enter the URL to the above directory
-
Install the SparkPost email extension
- Download the latest release of the extension into your extensions folder
Tip
We suggest using:
git clone https://github.com/cividesk/com.cividesk.email.sparkpost.git
- Go to Administer > Customize Data and Screens > Manage Extensions, and click install for this extension
-
Sign-up for a SparkPost account, then:
-
Create and verify your sending domain(s) at: https://app.sparkpost.com/domains/list/sending. Within CiviCRM, sending email addresses are managed at:
- Administer > Communications > Organization Address and Contact Info,
- and Administer > CiviMail > From Email Address.
So if you define
info@example.org
as a sending address in CiviCRM, you would need to create and verify the domainexample.org
in SparkPost. -
Create an API key at: https://app.sparkpost.com/account/api-keys
Attention
The API key you create should at a minimum be granted the following permissions:
- Transmissions (Read/Write)
- Sending Domains (Read/Write)
- Event Webhooks (Read/Write)
- Metrics (Read-only)
- Suppression Lists (Read/Write)
However, for the sake of simplicity and in order to account for future updates, we advise you to simply grant all permissions to the API key created.
-
-
Setup the SparkPost email extension
- Go to Administer > System Settings > Outbound Email (SparkPost)
- Enter the API key created above and click Save and Send test email
- Check the on-screen messages for any error you would need to resolve