View a markdown version of this page

Programmatic access to mailboxes - Amazon WorkMail

End of support notice: On March 31, 2027, AWS will end support for Amazon WorkMail. After March 31, 2027, you will no longer be able to access the Amazon WorkMail console or Amazon WorkMail resources. For more information, see Amazon WorkMail end of support.

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:

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.