You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When extending the FastMail class I discovered the usage of double underscored methods. What is the reason of applying name mangling here? In order to override __prepare_message I have to name the method _FastMail__prepare_message and that is not something I'm enthusiastic about ;)
When using a
UploadFile
as an attachment thefile_meta
is alwaysNone
. This happens during the validation ofMessageSchema
:fastapi-mail/fastapi_mail/schemas.py
Line 52 in a4aff1a
In my opinion
MailMsg.attach_file
should be extended to supportUploadFile
and derive the mimetype from the content-type header.When extending the
FastMail
class I discovered the usage of double underscored methods. What is the reason of applying name mangling here? In order to override__prepare_message
I have to name the method_FastMail__prepare_message
and that is not something I'm enthusiastic about ;)The text was updated successfully, but these errors were encountered: