You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`tempmail.get_email(username=None, domain=None)`: Generate a new email address.
50
-
-`tempmail.get_inbox(email)`: Retrieve a list of message IDs for the specified email address.
51
-
-`tempmail.get_message(email, id)`: Retrieve the contents of a message with the specified ID.
52
-
-`tempmail.wait_for_message(email, timeout=None, filter=None)`: Wait for a new message to arrive at the specified email address. You can optionally provide a timeout (in seconds) and a filter function to check the contents of the message.
53
-
-`tempmail.DOMAINS`: List of available email domains.
55
+
# Save to file
56
+
withopen(attachment.filename, 'wb') as f:
57
+
f.write(data)
58
+
```
54
59
55
60
## License
56
61
tempmail-python is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
0 commit comments