Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 4.2.0 - Email comes without template #96

Closed
domanskyi opened this issue Oct 28, 2020 · 0 comments
Closed

Version 4.2.0 - Email comes without template #96

domanskyi opened this issue Oct 28, 2020 · 0 comments

Comments

@domanskyi
Copy link

domanskyi commented Oct 28, 2020

My env:
Django: 1.11.29
Python: 2.7.18
sendgrid-django: 4.2.0
I changed settings:

EMAIL_BACKEND = "sgbackend.SendGridBackend"
SENDGRID_API_KEY = 'api key'

And used a code sample from the example:

    mail = EmailMultiAlternatives(
        subject="Your Subject",
        body="This is a simple text email body.",
        from_email="company <noreply@company.co>",
        to=["myemail@gmail.com"],
    )
    mail.template_id = '6b02f312-ad80-4d7e-815a-24be029fd05b'

    mail.substitutions = {
        '%email%': 'some email',
        '%location_city%': 'some city',
    }

    mail.send()

Email is coming, but without template

@domanskyi domanskyi changed the title sendgrid-django 4.2.0 do not work with django 1.11 version 4.2.0 do not work with django 1.11 Oct 28, 2020
@domanskyi domanskyi changed the title version 4.2.0 do not work with django 1.11 version 4.2.0 do not work with Django 1.11 Oct 28, 2020
@domanskyi domanskyi changed the title version 4.2.0 do not work with Django 1.11 Version 4.2.0 do not work with Django 1.11 Oct 28, 2020
@domanskyi domanskyi reopened this Oct 29, 2020
@domanskyi domanskyi changed the title Version 4.2.0 do not work with Django 1.11 Version 4.2.0 - Email comes without template Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant