fastapi-mail icon indicating copy to clipboard operation
fastapi-mail copied to clipboard

PASS Message-ID Header

Open IlyaBulatau opened this issue 1 month ago • 1 comments

I can pass the Message-ID header when sending in the send_message method, but the problem is that it is overwritten in the __prepare_message method when initializing the MailMsg object. I would like it so that if the Message-ID parameter is passed in the headers, it is not overwritten.

IlyaBulatau avatar Nov 18 '25 14:11 IlyaBulatau

https://docs.python.org/3/library/email.compat32-message.html#email.message.Message.setitem

IlyaBulatau avatar Nov 19 '25 05:11 IlyaBulatau

https://github.com/sabuhish/fastapi-mail/pull/294

Turall avatar Dec 15 '25 05:12 Turall