-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No specification of attachment file types #239
Comments
hi @Magnati, can you provide more context for this? perhaps an example with a specific file-type? |
Sorry for the late response. The file type for which it occurred for me is Below a minimal example which reproduced the behaviour in my case. import os
import notifiers
import pathlib
def send_zip(directory, mail):
p = notifiers.get_notifier("email")
# server credentials
user = "<your user>"
pw = "<your password>"
port = 12345
host = "<your host>"
status = p.notify(
to=mail,
username=user,
password=pw,
message="Test sending.",
subject="Test sending.",
ssl=True,
port=port,
html=host,
host="smtp.ambrosys.de",
attachments=[directory],
)
print(status)
if __name__ == "__main__":
mail = "yourl@mail.com"
directory = "/your/file/path.zip"
send_zip(directory, mail) |
I actually fixed this in #267. If you'd like sending an email to python.notifiers@gmail.com I'd send you a test email back |
Hello @liiight
This is kind of a feature request/second-layer-bug-but-not-realy-a-bug.
In notifiers/providers/email.py:120ff
... the header of the MIME application is set to the most generic type for attachments.
For all thunderbird users this creates the issue, that the attachments are not shown, since thunderbirds has a long time bug of not showing the attachments if the file type is not further specified.
So this is a request to either
Greetings,
Magnati
The text was updated successfully, but these errors were encountered: