python
inbox = Inbox()
inbox.login("imap.example.com", "username", "password")
python
emails = inbox.fetch()
for email in emails:
print(email.subject, email.sender, email.date)
python
inbox.send(recipient="recipient@example.com", subject="Hello", body="This is a test email.")
python
inbox.delete(email_id)