# Perl

## Overview

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

## Email API/SMTP for Perl

### SMTP Integration

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

{% hint style="info" %}
SMTP integration is compatible with any Perl framework or library that sends emails via SMTP.
{% 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-dea7e69a4e80b99640ba60ed1b6fad804ab21d2f%2Fmailtrap-perl-smtp-integration.png?alt=media" alt="" width="563"></div>

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

### RESTful API Integration

To integrate Mailtrap using RESTful API, simply copy/paste the API endpoint and API Token into the configuration file of a Perl 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).

<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-dec5f5e46b49cdfaf8e6c836b55b8f6a32e95c24%2Fmailtrap-perl-api-integration.png?alt=media" alt="" width="563"></div>

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