# Scala

## Overview

Mailtrap can be integrated with Scala apps and projects for email sending.

## Email API/SMTP for Scala

### SMTP integration

To integrate SMTP with your Scala app, navigate to the **Integrations** tab and copy-paste the credentials or ready-made code snippets.

{% hint style="info" %}
You'll have to use Play-Mailer configuration, as Scala doesn't have built-in support for SMTP sending.
{% endhint %}

<div align="left" data-with-frame="true"><img src="https://365478608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgkNigAKiqQtQub1GOdjY%2Fuploads%2Fgit-blob-e8d08453a84b9c8d00b546c640ce6e27c4a941b3%2Fmailtrap-scala-integration-smtp.png?alt=media" alt="" width="563"></div>

Read more about SMTP integration in our [dedicated guide](https://app.gitbook.com/s/S3xyr7ba7aGO19rc8dSK/email-api-smtp/setup/smtp-integration).

### RESTful integration

To integrate Mailtrap using RESTful API, simply copy/paste the API endpoint and API Token into the configuration file of a Scala framework or library that supports HTTP requests.

For more details, refer to the [API documentation](https://api-docs.mailtrap.io/docs/mailtrap-api-docs/5tjdeg9545058-mailtrap-api).

Read more about API integration in the [here](https://app.gitbook.com/s/S3xyr7ba7aGO19rc8dSK/email-api-smtp/setup/api-integration).
