◈ Mail → Excel

Export Outlook.com emails to Excel

By the Mail → Excel team · Updated 2026-10-20

Connection settings, credentials and the limits that break exports — for Outlook.com.

Connection settings

SettingValue
IMAP hostoutlook.office365.com
Port993
EncryptionSSL/TLS
Accessread-only

Credentials

  1. 1. Enable 2-step verification
  2. 2. Create an app password in Security settings
  3. 3. Connect to outlook.office365.com:993 SSL

Limits to expect

Export command

python mail_to_excel.py --host outlook.office365.com --port 993 --user you@example.com --days 31 --out mail.xlsx

Next step

The universal IMAP guide · Exports by role · Ready script ($3)

FAQ

App password is not offered

Your tenant requires OAuth or a desktop export; ask IT for an app registration.

Does the export touch read flags?

No — use read-only mode.

Related guides