PHPackages                             reut/email - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. reut/email

ActiveLibrary[Framework](/categories/framework)

reut/email
==========

Email plugin module for REUT framework - SMTP email sending functionality

v1.1.0(5mo ago)02MITPHPPHP &gt;=7.4

Since Dec 20Pushed 5mo agoCompare

[ Source](https://github.com/m4rcTr3y/Reut-Email)[ Packagist](https://packagist.org/packages/reut/email)[ Docs](https://github.com/m4rcTr3y/Reut-Email)[ RSS](/packages/reut-email/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

REUT Email Plugin
=================

[](#reut-email-plugin)

Email plugin module for the REUT framework providing SMTP email sending functionality.

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require reut/email
```

Configuration
-------------

[](#configuration)

Add the following environment variables to your `.env` file:

```
REUT_EMAIL_ENABLED=true
REUT_EMAIL_REQUIRES_AUTH=false
REUT_EMAIL_SMTP_HOST=smtp.gmail.com
REUT_EMAIL_SMTP_PORT=587
REUT_EMAIL_SMTP_USERNAME=your-email@gmail.com
REUT_EMAIL_SMTP_PASSWORD=your-app-password
REUT_EMAIL_SMTP_ENCRYPTION=tls
REUT_EMAIL_FROM_ADDRESS=noreply@example.com
REUT_EMAIL_FROM_NAME=REUT Framework
```

### Configuration Options

[](#configuration-options)

- `REUT_EMAIL_ENABLED` - Enable/disable email functionality (default: `false`)
- `REUT_EMAIL_REQUIRES_AUTH` - Require JWT authentication for email endpoints (default: `false`)
- `REUT_EMAIL_SMTP_HOST` - SMTP server hostname (required)
- `REUT_EMAIL_SMTP_PORT` - SMTP server port (default: `587`)
- `REUT_EMAIL_SMTP_USERNAME` - SMTP username (optional if no authentication)
- `REUT_EMAIL_SMTP_PASSWORD` - SMTP password (optional if no authentication)
- `REUT_EMAIL_SMTP_ENCRYPTION` - Encryption type: `tls`, `ssl`, or empty (default: `tls`)
- `REUT_EMAIL_FROM_ADDRESS` - Default from email address (required)
- `REUT_EMAIL_FROM_NAME` - Default from name (default: `REUT Framework`)

Integration
-----------

[](#integration)

Add the email router to your project's `routers/routes.php`:

```
