(Forgot to pass the new arguments to the MIME constructor)

This commit is contained in:
Fabio Manganiello 2020-09-05 01:27:08 +02:00
parent ce42f5aada
commit 6dce4c59f6
1 changed files with 1 additions and 1 deletions

View File

@ -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,