sklarsa / django-sendgrid-v5

An implementation of Django's EmailBackend compatible with sendgrid-python v5+
MIT License
318 stars 54 forks source link

Allow custom MailSettings to be applied #110

Closed jeremy-engel closed 2 years ago

jeremy-engel commented 2 years ago

Handles the mail_settings attribute in SendgridBackend._build_sg_mail.

Note: if sandbox_mode is set in the supplied settings, its value is overwritten with the default defined in this library's documentation to preserve as much existing behavior as possible. But this can be changed if desired to allow the user to provide a per-message sandbox_mode value in the supplied MailSettings.

sklarsa commented 2 years ago

Thanks for your contribution @jeremy-engel! Do you want me to cut a new release?

jeremy-engel commented 2 years ago

It would be great if you could, thanks!

sklarsa commented 2 years ago

Just released 1.2.1 LMK how it goes and thanks again for the contribution