kootenpv / yagmail

Send email in Python conveniently for gmail using yagmail
MIT License
2.66k stars 265 forks source link

Attachment is missing for MAC user #113

Open lucaNicoli88 opened 6 years ago

lucaNicoli88 commented 6 years ago

Dear all,

I have a problem using yagmail package. Using the same code for send a mail with chart in attachment, mail is correct for the first user, while for the second user the attachment is missing.

Users is both in the same network and same address. The only difference is that first user is using a windows pc, while the second user is using a Mac.

Attached here the code used: yag.send(to=["xxxx.xxxx@zzzz.com", "yyyy.yyyy@zzzz.com"], subject=subject, contents=[text, old_res_html], attachments=chart_file)

Best regards,

Luca

kootenpv commented 6 years ago

Hi Luca, I assume that the Mac user is using the OSX mail client?

If so, yagmail is not targetting the OSX client, but rather gmail only. Outlook and the OSX client interpret emails their own way, and it's not the goal of yagmail to support them (though a lot of things are compatible). In this case, if someone wants to figure out what is going on, I do welcome a PR, as long as it logically doesn't break anything of the gmail client.