﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32907	Allow duplicate headers while sending email	Shrawan Poudel	nobody	"Currently, for sending custom headers while sending email we create up a dict and pass it to the **EmailMessage**

for example:

{{{
from django.core.mail import EmailMessage

email = EmailMessage(
    'Example Subject',
    'Here is the message.',
    'from@example.com',
    to=['to@example.com'],
    headers={'x-unique-id':  'unique_id',
                     'X-email-id-trace ':'trace_id'},
)
email.send(fail_silently=False)
}}}

Since we pass **headers** using a **dict** i need to create up unique keys for headers so this is the reason i am not being able to send duplicate email headers,
i came across this case when i tried to implement AWS SES Logging where i need to send multiple headers of same name like,


{{{
    headers={'X-SES-CONFIGURATION-SET':  'emailLogs',
                     'X-SES-MESSAGE-TAGS ':'uid=uid',
		   'X-SES-MESSAGE-TAGS':'sub=sub',
                    'X-SES-MESSAGE-TAGS':'dom=dom'},

}}}

There are/can be multiple workarounds to deal with it but i will be happy to see this implemented in django core itself

I am happy to work on it if it needs to be implemented as a new feature to allow duplicate headers name
"	New feature	closed	Core (Mail)	3.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
