Sendgrid Web API -- set multiple users in reply_to field

I'm using the Sendgrid Python library, and I'd like to send emails with multiple people in the 'reply_to' field. I'd like to send an email to 2 people such that both users can email one another by...

“ImportError: No module named sendgrid” for SendGrid in Google App Engine

I followed the instruction from the https://cloud.google.com/appengine/docs/python/mail/sendgrid?hl=en and added SendGrid email support to my project. It works perfectly on the development server...

How to embed base64 images into SendGrid email via python?

According to this article by Sendgrid, inline embedding (Base64 Encoding) is supported. However the below code does not work, because it does not show the actual image, which should look like...

HTTPError: HTTP Error 401: Unauthorized for sendgrid integration with python

def sendEmail(to,apNumber,paperType,zipedFile): sg = sendgrid.SendGridAPIClient(apikey=os.environ.get("API-KEY")) to_email = mail.Email( "[email protected]") from_email = mail.Email(...

Python Sendgrid send email with PDF attachment file

I'm trying to attach a PDF file to my email sent with sendgrid. Here is my code : sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY')) from_email =...

Sendgrid returns 202 but doesn't send email

I'm trying to get the basic "hello world" of sendgrid working, but have so far been unsuccessful. The response returns code 202, suggesting that it will send the email, but the email never sends...

Simple way to send an html/text email using sendgrid & python?

I'm trying to use sendgrid to send email from my Python application. It's sending fine using the mail helper and the following syntax: sgmessage = mail.Mail(from_email, message.subject, to_email,...

Encode CSV file for Sendgrid's Email API

I am attempting to build a client reporting engine using R/Python, and Sendgrid's Email API. I can send emails, but the last thing that I need to do is attach a client's CSV report. I have...

Sendgrid to stop changing plain text links?

How to tell sendgrid to stop decorating plain text URLs? Using sendgrid SDK for Python, if that matters. sendgrid.SendGridClient(username, pwd) mail =...

Sending an email using sendgrid in a Django project using an HTML template

I am trying to send an email from my Django project using my Sendgrid account. For now, I am sending the email in the following way: import sendgrid import os from sendgrid.helpers.mail import...

How to send multiple recipient sendgrid V3 api Python

Anyone please help, I am using sendgrid v3 api. But I cannot find any way to send an email to multiple recipients. Thank in advance. import sendgrid from sendgrid.helpers.mail import * ...

SendGrid Django Template tags returning HTTP Error 400: Bad Request

Having an annoying issue. I am using Django to send data to sendGrid templates. But when I add substitutions I get a HTTP Error 400: Bad Request. If I dont add anything in the dictionary it works...

Python Sendgrid add CC to email

I am using SendGrid for Python. I want to CC some people in an email. It seems like they may no longer support CC'ing on emails, though I'm not positive if that's true? But surely there is a work...

Flask app broken after bson update in Heroku

I have a Flask app that uses mongoengine and running on Heroku, init I use the bson package and after I updateded it from 0.5.6 to 0.5.7 I started getting the following error message: [2018-11-23...

"Need a valid file name!" xhtml2pdf with Django

My problem is: I am creating a pdf file from an html, using the xhtml2pdf library. Having created the pdf file, I send the file to the user via email using the sendgrid API. However, I am not able...

SMTP server on Heroku

I am trying to build a very simple SMTP server in Python to receive emails from custom domains (e.g., [email protected]<my_domain.com>) and deploy it on Heroku without relying on Postmark or SendGrid. So far,...

Getting Bad Request Error while using sendgrid through python

I am getting a bad request error from sendgrid while trying to send out an email with attachments import base64 import os import json from sendgrid import SendGridAPIClient from...

How to email out data from a csv file with Sendgrid using python

I am using Sendgrid to send out emails to specific departments but I want the email to include data from a csv file. From my understanding, Sendgrid works with HTML. How would it be possible to...

Getting a strange error 403 forbidden for accessing an API through python

I am trying to access some email stats: My code: import json import os from sendgrid.helpers.stats import * from sendgrid import * # NOTE: you will need move this file to the root directory of...

HTTP Error 401: Unauthorized SendGrid django

I'm trying to do mail subscription on my django website I was following instructions online on how to achieve this. I went through it carefully but whenever I enter and email is say HTTP Error...

How to secure sendGrid API key secure in Google cloud composer

I have requirement to send notification email, once a Google Cloud Composer airflow DAG is completed. I have come to a solution and used sendGrid as suggested in Google Documents. But the problem...

SendGrid Unable to deliver List-Unsubscribe Email Header to Yahoo and Outlook

I am trying to send emails using SendGrid Api using python. I have already handled how to add list-unsubscribe header while sending emails and I have been successful in doing so, gmail get...

Understanding conda conflict resolution message

I have been trying to resolve some conflicts in conda and trying to understand the conflict messages. My environment.yml file is as follows name: main_env channels: - conda-forge -...

Azure App Service : deployment using pipelines: EnvironmentError: [Errno 28] No space left on device

Introduction Hi, I am deploying a Python-Flask application on the Azure App Service for months. Today I got the following error message while running my pipeline running on Microsoft...

Amazon SES credentials format - migrating Scala application (Play framework) from Sendgrid to SES

I am trying to migrate a Scala application (Play framework) using Sendgrid to Amazon SES. I have a registered domain in SES and am trying to send email via the SMTP interface. I went through the...

SendGrid email displayed as plaintext instead of HTML

I am sending a dynamic email template through SendGrid using python. The correct HTML email template is displayed in inbox when I test the email through Sendgrid UI, but a plaintext version is...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

Requirements.txt dependencies not being deployed with code on azure web app

I've been developing a Django site and have been testing it on a basic tier azure web app, and now its almost finished I've started a production instance, but I've had no luck deploying to it. I'm...

SendGrid Python API Dynamic Template Data

I have a python script that pulls customer transaction data from our DB and formats it to be used by SendGrid's Dynamic Templates, but I cannot figure out from the SendGrid docs or any other...

Sender Name in Sendgrid Python package

I am trying to send Emails using Sendgrid Python package. Sendgrid package mail function: class Mail(object): """Creates the response body for v3/mail/send""" def __init__( ...