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

dictionary update sequence element #0 has length 1; 2 is required #440

Open
shtalinberg opened this issue May 12, 2023 · 0 comments
Open

Comments

@shtalinberg
Copy link

shtalinberg commented May 12, 2023

https://github.com/ui/django-post_office/blob/52b29006a2aa535946813f886f576c2e0202c3da/post_office/models.py#LL122C47-L122C47

Hey, I got an error in this line when when sending email Fail and 'MESSAGE_ID_ENABLED': True,

using your BACKEND but sent via Django email

from django.core.mail import send_mail
send_mail(...

django-post-office | 3.6.3
Django Version: | 3.2.18
ValueError
dictionary update sequence element #0 has length 1; 2 is required
/usr/local/lib/python3.8/site-packages/post_office/models.py, line 123, in prepare_email_message

looks like this link can help you figure out hot to fix it

https://sebhastian.com/python-dictionary-update-sequence-element-0-has-length-x-2-is-required/

when we use your method

from post_office import mail
mail.send(

it works correct

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