> For the complete documentation index, see [llms.txt](https://docs.mailtrap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mailtrap.io/guides/sdk/perl-integration.md).

# 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="/files/f6NU3RgdojQyOsBpTVNI" alt="" width="563"></div>

Read more about SMTP integration [here](/email-api-smtp/setup/smtp-integration.md).

### 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="/files/ZerYJlTV3vPcku3U5Xvg" alt="" width="563"></div>

Read more about API integration in the [here](/email-api-smtp/setup/api-integration.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mailtrap.io/guides/sdk/perl-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
