Questions tagged [sparkpost]

SparkPost is a cloud-based email delivery service. SparkPost provides a RESTful API along with SMTP integration. It features real-time analytics, performance, and scalability. Please do not post your API Key in your questions :)

SparkPost is a cloud-based email delivery service. SparkPost provides a RESTful API along with SMTP integration. It features real-time analytics, performance, and scalability.

Please be careful not to post your API key in any question. If you do post your API key, even if you edit the question to remove it, delete your key and create a new one.

119 questions
1
vote
1 answer

Disable HTML encoding of substitution_data

After we switched from Mandrill to SparkPost we encountered issues when sending emails using transmission. In Mandrill merge_vars were not HTML encoded and we sometimes put HTML in them, however in SparkPost substitution_data does appear to be HTML…
jahu
  • 5,427
  • 3
  • 37
  • 64
1
vote
1 answer

How to configure SparkPost SMTP in Codeigniter?

I was successfully using Mandrill to send mail from my CodeIgniter site, with this config : $config['mailtype'] = "html"; $config['protocol'] = 'smtp'; $config['smtp_host'] = 'smtp.mandrillapp.com'; $config['smtp_user'] =…
Matthieu
  • 563
  • 1
  • 7
  • 25
1
vote
1 answer

PHP code working locally but not on Azure

I've implemented a mail delivery service using SparkPost for a website. The code looks like this: require '/vendor/autoload.php'; use SparkPost\SparkPost; use GuzzleHttp\Client; use Ivory\HttpAdapter\Guzzle6HttpAdapter; $httpAdapter = new…
Shaahin Sh
  • 165
  • 12
1
vote
2 answers

SparkPost: At least one valid recipient is required python/django API

I have a problem sending email with SparkPost: My code is as follow: from configurations.global_configs import site_base_url from media.settings import SPARKPOST_API_KEY from sparkpost import SparkPost import traceback def…
golden_boy615
  • 394
  • 3
  • 17
1
vote
1 answer

Need to get JSON arraySize in substitution Data

I need to get size of array in substitution data. I tried to use local var outside each loop but it did not work. Is there some in build method to get array size in substitution data?
Learner
  • 47
  • 3
1
vote
1 answer

SparkPost sending e-mail Template

I am using SparkPost PHP API to send e-mail to recipient but I am facing this error. Currently I have set up all the necessary field but I still have problems with large e-mails. I can easily send small text but I'm having difficulties with large…
Bindesh Pandya
  • 193
  • 3
  • 14
1
vote
1 answer

SparkPost API suppression-list returning "Method not allowed"

I am trying to insert an entry into the Suppression List described here I have tried this on my end, using PHP code, but I also get the same response using their own console on the provided website using a valid API key having the same result. This…
1
vote
1 answer

Why does this Sparkpost Python SDK Install fail?

I'm trying to install sparkpost sdk in the read me on git hub. I used the command: pip install sparkpost But I got this error: Could not find a version that satisfies the requirement sparkpost (from versions: 1.0.0.dev1, 1.0.0.dev1)
0
votes
1 answer

Content.text must be string error - using Sparkpost Api from Cloudflare worker

I am using Cloudflare worker to accept a post request and mail it then using Spark post Api. I am getting content.text must be a string error when I send it to Api. async function sendEmail(request, SPARKPOST_API_KEY) { const jsonData = await…
amren
  • 3
  • 3
0
votes
0 answers

Get merged email body from SparkPost

Any way to get the merged email body from SparkPost? I did not see a way to do this with their APIs. Would be nice if they added this content to their webhook.
user2296256
  • 45
  • 1
  • 2
  • 8
0
votes
0 answers

Sparkpost: import messages for email templates from excel

Is there a way to import the translation messages from excel and update all the email templates on Sparkpost automatically? Maybe using some tags, ids, or scripts (my platform is Angular-based, translations are managed with 3rd party Transifex, and…
0
votes
1 answer

How to access API data using authentication type 'API key' in Python?

I need to access Sparkpost data using their API. They do so via Authentication type = 'API key' instead of Basic Auth. I can do Basic Auth in Python using the code below. import requests import json import requests from requests.auth import…
Pankaj Kumar
  • 147
  • 11
0
votes
1 answer

How can I embed a pandas dataframe into a SparkPost email with HTML formatting?

I would like to send automated emails through SparkPost that include a pandas dataframe in the body of the email. The code below shows what I've been working through thus far. The main issue is the html section of the transmissions block. I cannot…
0
votes
1 answer

Node.js SparkPost Not able to send attachments via transmission API

I am using Node.js and Axios to send emails via SparkPost Transmission API. I am able to get the emails successfully, however, I am not able to get the attachments. The Spark Post documentation says that we can get the attachment files using…
Suvab
  • 43
  • 5
0
votes
1 answer

Get API result when sending SparkPost email from Django?

If I send a message via the SparkPost python API directly, it returns a result that looks like this: {'total_rejected_recipients': 0, 'total_accepted_recipients': 1, 'id': '1234567890'} Django has built-in integration support for sending mail via…
John Gordon
  • 29,573
  • 7
  • 33
  • 58