From 6dce4c59f66b467154e1a863f0c26b4dc5a80ef3 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 5 Sep 2020 01:27:08 +0200 Subject: [PATCH] (Forgot to pass the new arguments to the MIME constructor) --- platypush/plugins/mail/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/mail/__init__.py b/platypush/plugins/mail/__init__.py index eecea0bf..c8641c7c 100644 --- a/platypush/plugins/mail/__init__.py +++ b/platypush/plugins/mail/__init__.py @@ -173,7 +173,7 @@ class MailOutPlugin(MailPlugin, ABC): args['Name'] = os.path.basename(file) with open(file, 'rb') as f: - return _type_class(f.read(), _subtype, Name=os.path.basename(file)) + return _type_class(f.read(), _subtype, **args) @classmethod def create_message(cls, to: Union[str, List[str]], from_: Optional[str] = None,