Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: email attachement with non-ascii characters will be renamed
Post: RE: email attachement with non-ascii characters wi...

The output from "print(msg) reads like that: Microsoft Windows [Version 6.1.7601] Copyright © 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\XXX>"C:/Program Files (x86)/Python...
Erich1959 Networking 4 4,383 Apr-07-2020, 06:57 PM
    Thread: email attachement with non-ascii characters will be renamed
Post: RE: email attachement with non-ascii characters wi...

That is not possible - if I try to change line 27 to msg.add_attachment(open(path, "r").read(), filename=file.encode('utf-8'))then I only get a lot of error-messages like this: C:\Users\ESchuett>...
Erich1959 Networking 4 4,383 Apr-07-2020, 05:23 PM
    Thread: email attachement with non-ascii characters will be renamed
Post: email attachement with non-ascii characters will b...

I have created code to send an email with an attachement and it works fine as long as there are no non-ascii characters in the file name and it works fine if there are only ascii-characters in the fil...
Erich1959 Networking 4 4,383 Apr-06-2020, 09:13 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020