kootenpv / yagmail

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

Email received as attachment instead of preview #274

Open batchor opened 2 months ago

batchor commented 2 months ago

My emails are delivered to Outlook receivers as attachments rather than previews.

Gmail receives the emails in a good way and all previews well.

The code is as below:

yag.send(
    to=e,
    subject='My Awesome title',
    contents=["path/to/example.html"]
)
batchor commented 1 month ago

@kootenpv any thoughts?

kootenpv commented 3 weeks ago

Afraid we can't do much about it, as it is targeting Gmail first and foremost, I'd recommend you'd to do some research, maybe we can find a way how outlook expects emails... If you find a solution I can merge a PR