Programmatic access to mailboxes
To programmatically access Amazon WorkMail mailboxes, use the Exchange Web Services (EWS) protocol. With EWS, you can access all item types in a mailbox. Here are some EWS libraries that you can use with Amazon WorkMail:
Java – EWS Java API
.Net – EWS Managed API
Python – Exchangelib
Amazon WorkMail also supports IMAP and SMTP protocols, which you can use to send and receive emails. You can see the URLs supported for Amazon WorkMail protocols under Amazon WorkMail endpoints and quotas.
When using the EWS protocol, Amazon WorkMail supports the following authentication methods:
Basic Authentication – With basic authentication, you enter an email address and password.
Impersonation roles – With impersonation roles, you access users' mailboxes without entering the user's credentials.