Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from exchangelib import DELEGATE, Account, Credentials
- credentials = Credentials(
- username='banco\\jbravo11',
- password='kudaw2017')
- account = Account(
- primary_smtp_address='jbravo11@externos.bancoestado.cl',
- credentials=credentials,
- autodiscover=True,
- access_type=DELEGATE)
- for item in account.inbox.all().order_by('-datetime_received'):
- print(item.subject, item.body, item.attachments)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement