(Forgot to pass the new arguments to the MIME constructor)
This commit is contained in:
parent
ce42f5aada
commit
6dce4c59f6
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class MailOutPlugin(MailPlugin, ABC):
|
||||||
args['Name'] = os.path.basename(file)
|
args['Name'] = os.path.basename(file)
|
||||||
|
|
||||||
with open(file, 'rb') as f:
|
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
|
@classmethod
|
||||||
def create_message(cls, to: Union[str, List[str]], from_: Optional[str] = None,
|
def create_message(cls, to: Union[str, List[str]], from_: Optional[str] = None,
|
||||||
|
|
Loading…
Reference in a new issue