Comments (5)
Hi @Kangaroux
I using Python 3.5.2 on production.
(example.com) vagrant@vagrant-ubuntu-trusty-64:~$ python -V
Python 3.5.2
(example.com) vagrant@vagrant-ubuntu-trusty-64:~$ pip freeze | grep sendgrid
sendgrid==3.6.3
sendgrid-django==4.0.1
Everything works for me.
Can you please show me your how you put in settings APIKEY
encoding?
from sendgrid-django.
settings.py
EMAIL_BACKEND = "sgbackend.SendGridBackend"
SENDGRID_API_KEY = os.environ.get("SENDGRID_API")
deploy.sh
export SENDGRID_API="SG.abcdefg1234"
from sendgrid-django.
@Kangaroux try to
SENDGRID_API_KEY = str.encode(os.environ.get("SENDGRID_API"))
from sendgrid-django.
more info at http://stackoverflow.com/questions/7585435/best-way-to-convert-string-to-bytes-in-python-3
from sendgrid-django.
btw I tried using your approach all is working for me.
from sendgrid-django.
Related Issues (20)
- Celery - Task handler raised error: MaybeEncodingError ? HOT 4
- EmailMultiAlternatives bcc not working HOT 5
- Issues When attaching file with email in sendgrid v3 APIs HOT 7
- Error sending attachments with mimetype text/* HOT 6
- Improve error message from sendgrid instead of just raise
- The sample code in the readme makes Sendgrid send back a 400. HOT 2
- The sample code in the readme uses a reserved header. HOT 2
- Lacking compatibility with lazy-translated strings
- Applying group data to Mail object HOT 5
- HTTPError not being caught HOT 3
- Possible to set send_at parameter?
- Getting a status code from Sendgrid ?
- Rendering images HOT 1
- Handlebar support HOT 3
- are you looking for maintainers ?
- Advice on how to achieve per-email-sent clicktracking toggle?
- Mail.send() UnauthorizedError HOT 1
- Unauthorized access issue?
- please upgrade the package for support new send-grid library HOT 3
- Version 4.2.0 - Email comes without template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sendgrid-django.