PHPackages                             stevleibelt/php\_send\_email\_via\_command\_line - 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. [CLI &amp; Console](/categories/cli)
4. /
5. stevleibelt/php\_send\_email\_via\_command\_line

ActiveLibrary[CLI &amp; Console](/categories/cli)

stevleibelt/php\_send\_email\_via\_command\_line
================================================

free as in freedom cli script to send emails

1.8.2(3y ago)016[4 issues](https://github.com/stevleibelt/php_send_email_via_command_line/issues)GPL-3.0-or-laterPHPPHP &gt;=8.0

Since Jan 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/stevleibelt/php_send_email_via_command_line)[ Packagist](https://packagist.org/packages/stevleibelt/php_send_email_via_command_line)[ RSS](/packages/stevleibelt-php-send-email-via-command-line/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (18)Used By (0)

Send Mail Via Command Line
==========================

[](#send-mail-via-command-line)

This free as in freedom command line tool to easy up sending mails from the command line. Thanks to [Swiftmailer](https://swiftmailer.symfony.com/). This is just a command line frontend using the great swiftmailer.

The current change log can be found [here](CHANGELOG.md).

Usage
-----

[](#usage)

```
send_mail "" "" "" "" [--bcc=] [--cc=][-v|--verbose] [--attachment= - can be used multiple times]

```

Manual
------

[](#manual)

### NAME

[](#name)

send\_mail - send an email via the command line

### SYNOPSIS

[](#synopsis)

send\_mail \[FROM\] \[TO\] \[SUBJECT\] \[PATH TO THE CONTENT FILE\] \[OPTIONS\]

### DESCRIPTION

[](#description)

Send an email via the command line. The content is stored inside a file to easy up usage. Text or html is detected automatically.

### AUTHOR

[](#author)

Written by Stev Leibelt.

### REPORTING BUGS

[](#reporting-bugs)

Report bugs to [https://github.com/stevleibelt/php\_send\_email\_via\_command\_line/issues](https://github.com/stevleibelt/php_send_email_via_command_line/issues)

### COPYRIGHT

[](#copyright)

Copyright © 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Install
=======

[](#install)

By Hand
-------

[](#by-hand)

```
mkdir -p /opt/stevleibelt
cd /opt/stevleibelt
git clone https://github.com/stevleibelt/php_send_email_via_command_line
composer install

```

With [Packagist](https://packagist.org/packages/stevleibelt/php_send_email_via_command_line)
--------------------------------------------------------------------------------------------

[](#with-packagist)

```
composer require stevleibelt/php_send_email_via_command_line

```

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

[](#configuration)

Currently, there is no merging of `local.dist.php` and `local.php`. If you create a `local.php`, you have to copy the whole configuration section.

```
#only do it if you really need it.
cp configuration/local.dist.php configuration/local.php
#adapt it to your needs
vim configuration/local.php

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity77

Established project with proven stability

 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 ~167 days

Recently: every ~210 days

Total

16

Last Release

1309d ago

PHP version history (3 changes)1.0.0PHP &gt;=5.3.3

1.4.0PHP &gt;=7.2

1.8.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/58451b041f6f5a38c7e62762c96d01f5e2bcac30e322707fe4760a82bccb6856?d=identicon)[artodeto](/maintainers/artodeto)

---

Top Contributors

[![stevleibelt](https://avatars.githubusercontent.com/u/2287220?v=4)](https://github.com/stevleibelt "stevleibelt (46 commits)")

---

Tags

phpcliconsolecommand-linemailemailfree as in freedomgpl

### Embed Badge

![Health badge](/badges/stevleibelt-php-send-email-via-command-line/health.svg)

```
[![Health](https://phpackages.com/badges/stevleibelt-php-send-email-via-command-line/health.svg)](https://phpackages.com/packages/stevleibelt-php-send-email-via-command-line)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k348.7M10.4k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k260.6M359](/packages/nunomaduro-termwind)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815424.6k52](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2592.3M13](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

672.2M4](/packages/nunomaduro-laravel-console-summary)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16357.3k8](/packages/nunomaduro-laravel-console-dusk)

PHPackages © 2026

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