sabuhish / fastapi-mail

Fastapi mail system sending mails(individual, bulk) attachments(individual, bulk)
https://sabuhish.github.io/fastapi-mail/
MIT License
702 stars 82 forks source link

multipart html and plain text emails #115

Closed msb closed 1 year ago

msb commented 2 years ago

Would it be possible to provide an example illustrating how to send an email with alternate plain text?.. as in the last example in these python email examples.

sabuhish commented 2 years ago

Hmm, I am pretty sure that we have provided enough examples for use cases.

https://sabuhish.github.io/fastapi-mail/example/ and if you want o plain text, you can specify it on subtype https://github.com/sabuhish/fastapi-mail/blob/master/fastapi_mail/schemas.py#L41

anpr commented 2 years ago

But we'd like to send both the html attachment and the plaintext attachment. This is quite important as presumably many spam detectors don't like html-only emails.

vatsal-fpl commented 2 years ago

I am having an issue like when I try to create message Schema in different file attachment doesn't work, as it's provided in example. I am just passing the parameters shown in example.

sabuhish commented 2 years ago

We plan to update the documentation in the coming days and with this in mind, we will do minor refactorings and add a new feature. I will try to figure it out and let you know asap. Thanks for reporting.

AkioSarkiz commented 1 year ago

I hope Santa gives me this feature next year 🎄

rememberlenny commented 1 year ago

Any update?

sabuhish commented 1 year ago

This feature is now available in version 1.3.0, closing this issue.