Open tzachyrm opened 3 years ago
This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
I sent a pull request for code to fix this issue.
As I mentioned in the pull request, the current implementation seems intended to only add the first key/value item if the header argument given to add_header is dict that has multiple key/values.
I believe this is non-intuitive and confusing to users. However, as long as the intent is not clear, I did not think this should be changed and kept it as is.
Issue Summary
The docs mentions that the
Mail.add_header
should accept a dict of key-value pairs. However, when passing a dict, the function fails.Steps to Reproduce
Mail
objectadd_header
with a dict. According to the docs this should work.Code Snippet
Exception/Log
Technical details: