UnicodeDecodeError in mailer attach #442
-
Hi @gi0baro Frequently use mailer, but I hadn't used it with Attach. I want, after the submit of the form, send an email with the file attached from the form
But an error occurs:
The UnicodeDecodeError error is known, especially when I used strings at Python2.7, but I don't understand why reading the file. With this it also gives the error:
The attached file is in this case a JPG, but it could be another type of image or also a PDF |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This works fine:
|
Beta Was this translation helpful? Give feedback.
This works fine: