PHPackages                             k-ko/send-mail-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. k-ko/send-mail-smtp

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

k-ko/send-mail-smtp
===================

Shell script wrapper for PHPMailer

v2.1.0(4y ago)012MITPHP

Since Feb 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/K-Ko/send-mail-smtp)[ Packagist](https://packagist.org/packages/k-ko/send-mail-smtp)[ RSS](/packages/k-ko-send-mail-smtp/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

sendmail
========

[](#sendmail)

Install
-------

[](#install)

```
composer require k-ko/send-mail-smtp

```

Send emails secured via your own SMTP email server
--------------------------------------------------

[](#send-emails-secured-via-your-own-smtp-email-server)

```
Usage: vendor/bin/sendmail -c  [options]

Options:
        -c      Config file {required}
        -t      To: address(es), can be used multiple times
        -s      Subject
        -b      Plain text body, if starts with @ assume get from file
        -f      HTML body, if starts with @ assume get from file
        -w      CC: address(es), can be used multiple times
        -z      BCC: address(es), can be used multiple times
        -r      From: From email address, overwrites config file if given
        -a      Attachment(s); file_name[,display_name]
        -p      Priority (0|1)
        -v[vvv] PHPMailer verbosity
        -h      This help

Possible formats for emails: 'name@example.com' or 'any name '
If a HTML body is set, an additional plain text body will be ignored!

```

**All options can be defined in the config file and will be overwritten by command line parameters.**

All Email addresses are accepted as `name@example.com` or `any name ` or `"any name" `

Verbosity levels are translated to

- `0` - No debug output, default
- `1` - Client commands
- `2` - Client commands and server responses
- `3` - Client commands and server responses plus connection status
- `4` - Low-level data output, all messages

Messages goes to STDERR

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

[](#configuration)

Copy `config.dist.php` and adjust for your needs

```
$ cp vendor/k-ko/send-mail-smtp/config.dist.php email.conf.php

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~34 days

Recently: every ~76 days

Total

10

Last Release

1595d ago

Major Versions

v1.3.0 → v2.0.02021-02-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/b147e5fe1bf52c9cf3646306e97c84f56f17aa34a45f02547c231a48e5a4c211?d=identicon)[K-Ko](/maintainers/K-Ko)

---

Top Contributors

[![K-Ko](https://avatars.githubusercontent.com/u/327396?v=4)](https://github.com/K-Ko "K-Ko (11 commits)")

### Embed Badge

![Health badge](/badges/k-ko-send-mail-smtp/health.svg)

```
[![Health](https://phpackages.com/badges/k-ko-send-mail-smtp/health.svg)](https://phpackages.com/packages/k-ko-send-mail-smtp)
```

###  Alternatives

[ivantcholakov/codeigniter-phpmailer

A CodeIgniter 3 compatible email-library powered by PHPMailer.

25313.9k](/packages/ivantcholakov-codeigniter-phpmailer)[markguinn/silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails

3145.4k1](/packages/markguinn-silverstripe-email-helpers)[msp/smtp

SMTP with PHPMailer

2129.4k](/packages/msp-smtp)[nfephp-org/sped-mail

API para geração e envio dos emails relacionados com o SPED.

1123.7k](/packages/nfephp-org-sped-mail)

PHPackages © 2026

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