PHPackages                             jox/cemail - 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. jox/cemail

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

jox/cemail
==========

Classes for sending email

019PHP

Since May 8Pushed 12y ago1 watchersCompare

[ Source](https://github.com/joxiba/cemail)[ Packagist](https://packagist.org/packages/jox/cemail)[ RSS](/packages/jox-cemail/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CEmail a PHP class for sending very simple email messages.
==========================================================

[](#cemail-a-php-class-for-sending-very-simple-email-messages)

[![Build Status](https://camo.githubusercontent.com/2e399fb858448e8ce9662a49a2a5daf55a6903ae61e17c41eb4e5c98281db3dc/68747470733a2f2f7472617669732d63692e6f72672f6a6f786962612f63656d61696c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/joxiba/cemail)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d1b57906742ee670da3df084c9b6eae3ae4509fed4b258397ab341432417a9aa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f786962612f63656d61696c2f6261646765732f7175616c6974792d73636f72652e706e673f733d31386330396436396365346134373836396366383738613661646336363336393666623338613163)](https://scrutinizer-ci.com/g/joxiba/cemail/)[![Code Coverage](https://camo.githubusercontent.com/23d4896c7ef1e701c850b78714b19e9b421ac76ac307a83007bbebc58d8739af/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f786962612f63656d61696c2f6261646765732f636f7665726167652e706e673f733d36336332616266333937333633316662616565663431656635313631356663303138653663626662)](https://scrutinizer-ci.com/g/joxiba/cemail/)

This module sends a simple email message. It sanitizes and validates the "to" and "from" email addresses before anything is sent through. The module has been tested and designe for the Anax-MVC.

By Joakim Sehlstedt

Installation
============

[](#installation)

To make full use of the module gitclone a copy of the [Anax-MVC](https://github.com/mosbth/Anax-MVC).

You can either copy the files from this repository or use the composer package at [packagist.org/packages/jox/cemail](https://packagist.org/packages/jox/cemail).

To test the module from a anax front-controller run the following code .

```
// Standard $di object creation
$di = new \Anax\DI\CDIFactoryDefault();

// Set your services here
$di->set('email', '\Jox\Email\CEmail');

// Standard injection of services into Anax $app object.
$app = new \Anax\Kernel\CAnax($di);
```

Run this from within your preferred route.

```
// Send email and recieve send status string
$res = $app->email->sendEmail('from-whatever@example.com', 'to-whatever@example.com', 'Message Subjectline', 'Message body...');
```

The result of your sending will show up in the form of a string message in the $res variable.

You can also test the function from the test.php file in the webroot folder included in the package.

Don't forget to change the email addresses in the examples otherwise you wont see any messages!

Good luck!

License
-------

[](#license)

This software is free software and carries a MIT license.

Todo
----

[](#todo)

History
-------

[](#history)

v1.0 (latest)

Initial release.

Copyright 2014 by Joakim Sehlstedt

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/aea341c5d5665a04cdf894481749c838d54811a7938de2e0e236edb33cbdd7e4?d=identicon)[joxiba](/maintainers/joxiba)

---

Top Contributors

[![joakimsehlstedt](https://avatars.githubusercontent.com/u/6735356?v=4)](https://github.com/joakimsehlstedt "joakimsehlstedt (18 commits)")

### Embed Badge

![Health badge](/badges/jox-cemail/health.svg)

```
[![Health](https://phpackages.com/badges/jox-cemail/health.svg)](https://phpackages.com/packages/jox-cemail)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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