Giter Club home page Giter Club logo

Comments (9)

kootenpv avatar kootenpv commented on May 10, 2024

Indeed, it requires the file extension so you do not have to specify the mimetype yourself. I'm able to send them though, no security issues... what is the configuration to reproduce the issue on your end?

from yagmail.

BusinessTec avatar BusinessTec commented on May 10, 2024

The note on changing extension was only related to zip file (it was blocked on smtp with zip extension). The others are being send OK but files are delivered corrupted.
I can be easily reproduced by sending .docx, xlsx, pdf files. They worked fine before sending, but while opening received ones an error is reported.

from yagmail.

BusinessTec avatar BusinessTec commented on May 10, 2024

I compared files before and after sending as attachments, got from an example following output:
i.xlsx ii.xlsx differ: byte 103, line 1 is 130 X 12 ^J
from
cmp -b i.xlsx ii.xlsx

Runing a full list of differences produces a list of all bytes in the file.

from yagmail.

kootenpv avatar kootenpv commented on May 10, 2024

Confirmed, it was a bug. Hopefully now I got the encodings right in all cases. Please upgrade (pip install -U yagmail, to version 0.3.79) and try again.

Thanks a lot for filing the issue!

from yagmail.

BusinessTec avatar BusinessTec commented on May 10, 2024

It looks like nothing is attached at all. I can see the name of the file only. In case of .png file I see the name of the file plus place holder for the image in the email body, but no image at all.

Just in case, I am testing with python 2.7, Ubuntu 15.04.

Thanks a lot for your effort!

from yagmail.

kootenpv avatar kootenpv commented on May 10, 2024

Confirmed, I only tested with Python 3 since the latest bug was there (though now it works for 3). Now looking at a way to solve for Python 2.

from yagmail.

kootenpv avatar kootenpv commented on May 10, 2024

Fixed for both Python 2 & 3. Tested files with .py, .jpg and .xlsx extension. Please confirm once more (version 0.3.81)!

from yagmail.

BusinessTec avatar BusinessTec commented on May 10, 2024

It works great now - I tested with few other extensions with no problems.
Congratulation on really useful project!

from yagmail.

kootenpv avatar kootenpv commented on May 10, 2024

Thank you very much!

from yagmail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.