update email test
This commit is contained in:
@@ -56,7 +56,11 @@ class Message:
|
||||
) -> None:
|
||||
self._body.attach(MIMEText(text, subtype, charset))
|
||||
|
||||
def attach(self, path: Path, filename: str | None = None) -> None:
|
||||
def attach(self, path: Path | MIMEApplication, filename: str | None = None) -> None:
|
||||
if isinstance(path, MIMEApplication):
|
||||
self._message.attach(path)
|
||||
return
|
||||
|
||||
if not path.is_file():
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user