# Exchange

Frends offers seamless integration with [Exchange](https://www.microsoft.com/en-us/microsoft-365/exchange/email), enabling you to effortlessly automate interactions between your systems and Exchange.

By leveraging Frends' task-based approach, you can configure and customize Exchange integrations according to your specific use cases. Frends has Exchange tasks for both sending and reading emails.

## Use cases

Below you will find examples of typical use cases for Exchange and how they could be implemented in Frends.

### Sending an email

By using the Conditional trigger in conjunction with the [`SendEmail`](https://docs.frends.com/tasks/tasks/exchange/sendemail) task, we can create an integration that sends an email to a specified recipient group when a condition is met. [Conditional triggers](https://docs.frends.com/en/articles/2364499-conditional-trigger) run a subprocess at specified intervals, and if the subprocess returns a non-empty value, the main process is run. The subprocess could, for example, check users' last login time from a database, and return the emails of the users that have not logged in in the last month. The main process would then send them an email.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-dda7fb13f2b5f4ed25f11f675db25212cac6393f%2Fexchange_send_email.svg?alt=media" alt=""><figcaption><p>Sending an email</p></figcaption></figure>
