PHPackages                             osumionline/plugin-email-smtp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. osumionline/plugin-email-smtp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

osumionline/plugin-email-smtp
=============================

Plugin OEmailSMTP para Osumi Framework

3.1.0(1y ago)066MITPHPPHP &gt;=8.2

Since Sep 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/osumionline/plugin-email-smtp)[ Packagist](https://packagist.org/packages/osumionline/plugin-email-smtp)[ RSS](/packages/osumionline-plugin-email-smtp/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Osumi Framework Plugins: `OEmailSMTP`

Este plugin añade la clase `OEmailSMTP` al framework con la que se pueden enviar emails usando la librería `PHPMailer`. Usando esta librería se pueden realizar envíos mediante SMTP con servicios como, por ejemplo, GMail. La consiguración se realiza en el archivo `Config.json` general de la aplicación.

Configuración

```
{
  ...,
  "plugins": {
      "email_smtp": {
          "host": "smtp.gmail.com",
          "port": 587,
          "secure": "tls",
          "user": "user@gmail.com",
          "pass": "password"
      }
  },
}
```

Uso del plugin

```
$email = new OEmailSMTP();

// Remitente
$email->setFromName('User name'); // La dirección del remitente se configura en Config.json
// Añadir destinatarios uno a uno
$email->addRecipient('user@gmail.com');
$email->addRecipient('user@hotmail.com');
// Añadir destinatarios mediante un array
$email->setRecipients(['user@gmail.com', 'user@hotmail.com']);
// Añadir destinatario en copia
$email->setCC('another_user@gmail.com');
// Añadir destinatario en copia oculta
$email->setBCC('hidden@gmail.com');
// Asunto
$email->setSubject('Asunto');
// Contenido del email (con HTML)
$email->setMessage('Contenido del emailcon HTML');
// Contenido del email (texto plano)
$email->setIsHtml(false);
$email->setMessage('Contenido del email con texto plano');
// Adjuntos (uno a uno)
$email->addAttachment('/path/to/file.pdf');
// Adjuntos mediante un array
$email->setAttachments(['/path/to/file.pdf', '/path/to/another_file.pdf']);

// Enviar email
$email->send();

// Tras realizar el envío se puede comprobar la lista de usuarios a los que se les ha enviado y aquellos que han dado error
$usuarios_correctos = $email->getResultOk();
$usuarios_error = $email->getResultError();
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~77 days

Total

3

Last Release

515d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/156799685?v=4)[Osumi](/maintainers/osumionline)[@osumionline](https://github.com/osumionline)

---

Top Contributors

[![igorosabel](https://avatars.githubusercontent.com/u/633864?v=4)](https://github.com/igorosabel "igorosabel (4 commits)")[![osumionline](https://avatars.githubusercontent.com/u/156799685?v=4)](https://github.com/osumionline "osumionline (1 commits)")

### Embed Badge

![Health badge](/badges/osumionline-plugin-email-smtp/health.svg)

```
[![Health](https://phpackages.com/badges/osumionline-plugin-email-smtp/health.svg)](https://phpackages.com/packages/osumionline-plugin-email-smtp)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[utopia-php/messaging

A simple, light and advanced PHP messaging library

23236.1k6](/packages/utopia-php-messaging)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
