Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on page /faq.html #53

Open
karthik0330 opened this issue Jul 27, 2022 · 1 comment
Open

Issue on page /faq.html #53

karthik0330 opened this issue Jul 27, 2022 · 1 comment

Comments

@karthik0330
Copy link

I wanted to download all the attachments from a received mail. can provide the sample python code ?

@Miksus
Copy link
Owner

Miksus commented Jul 30, 2022

Do you mean that you would like to get the attachments of an email that could be sent by Red Mail? Red Mail operates on SMTP which, unfortunately, cannot read any received emails. It can only send emails.

You can get the email that would be sent via Red Mail using either get_message or mock the sender: https://red-mail.readthedocs.io/en/latest/tutorials/testing.html. The attachments should be in the EmailMessage, cannot remember where they are on top of my head though.

Does this answer the question or did I get the question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants