PHPackages                             yakatz/kohana-swiftmailer - 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. yakatz/kohana-swiftmailer

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

yakatz/kohana-swiftmailer
=========================

Email helper for Kohana, uses Swiftmailer

v2.1.0(9y ago)011BSD-3-ClausePHPPHP &gt;=5.3.0

Since Aug 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yakatz/kohana-swiftmailer)[ Packagist](https://packagist.org/packages/yakatz/kohana-swiftmailer)[ Docs](https://github.com/yakatz/kohana-swiftmailer)[ RSS](/packages/yakatz-kohana-swiftmailer/feed)WikiDiscussions master Synced today

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

Email Module For Kohana 3.x
===========================

[](#email-module-for-kohana-3x)

Factory-based email class. This class is a simple wrapper around [Swiftmailer](http://github.com/swiftmailer/swiftmailer).

Usage
-----

[](#usage)

Create new messages using the `Email::factory($subject, $message)` method. Add recipients, add sender, send message:

```
$email = Email::factory('Hello, World', 'This is my body, it is nice.')
    ->to('person@example.com')
    ->from('you@example.com', 'My Name')
    ->send()
    ;

```

You can also add HTML to your message:

```
$email->message('This is my body, it is nice.', 'text/html');

```

Additional recipients can be added using the `to()`, `cc()`, and `bcc()` methods.

Additional senders can be added using the `from()` and `reply_to()` methods. If multiple sender addresses are specified, you need to set the actual sender of the message using the `sender()` method. Set the bounce recipient by using the `return_path()` method.

To access and modify the [Swiftmailer message](http://swiftmailer.org/docs/messages) directly, use the `raw_message()` method.

### Message Part Order

[](#message-part-order)

Due to a [bug](https://github.com/swiftmailer/swiftmailer/issues/184#issuecomment-5198845) in SwiftMailer, a message with HTML and plain text must have the HTML set first. As of `kohana-swiftmailer` version `1.1`, `message()` defaults to `text/html`. We are looking for a more flexible solution.

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

[](#configuration)

Configuration is stored in `config/email.php`. Options are dependant upon transport method used. Consult the Swiftmailer documentation for options available to each transport.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 69.6% 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 ~293 days

Total

4

Last Release

3456d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/93333?v=4)[Yehuda Katz](/maintainers/yakatz)[@yakatz](https://github.com/yakatz)

---

Top Contributors

[![shadowhand](https://avatars.githubusercontent.com/u/38203?v=4)](https://github.com/shadowhand "shadowhand (39 commits)")[![alexkingorg](https://avatars.githubusercontent.com/u/108423?v=4)](https://github.com/alexkingorg "alexkingorg (4 commits)")[![banks](https://avatars.githubusercontent.com/u/120915?v=4)](https://github.com/banks "banks (3 commits)")[![lillem4n](https://avatars.githubusercontent.com/u/281230?v=4)](https://github.com/lillem4n "lillem4n (2 commits)")[![bumperbox](https://avatars.githubusercontent.com/u/193672?v=4)](https://github.com/bumperbox "bumperbox (1 commits)")[![Hinton](https://avatars.githubusercontent.com/u/137855?v=4)](https://github.com/Hinton "Hinton (1 commits)")[![itunali](https://avatars.githubusercontent.com/u/199362?v=4)](https://github.com/itunali "itunali (1 commits)")[![kemo](https://avatars.githubusercontent.com/u/100160?v=4)](https://github.com/kemo "kemo (1 commits)")[![yakatz](https://avatars.githubusercontent.com/u/93333?v=4)](https://github.com/yakatz "yakatz (1 commits)")[![almirsarajcic](https://avatars.githubusercontent.com/u/845364?v=4)](https://github.com/almirsarajcic "almirsarajcic (1 commits)")[![Big-Shark](https://avatars.githubusercontent.com/u/646054?v=4)](https://github.com/Big-Shark "Big-Shark (1 commits)")[![BRMatt](https://avatars.githubusercontent.com/u/20394?v=4)](https://github.com/BRMatt "BRMatt (1 commits)")

---

Tags

helperemaillibrarykohanamoduleswiftmailer

### Embed Badge

![Health badge](/badges/yakatz-kohana-swiftmailer/health.svg)

```
[![Health](https://phpackages.com/badges/yakatz-kohana-swiftmailer/health.svg)](https://phpackages.com/packages/yakatz-kohana-swiftmailer)
```

###  Alternatives

[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

84133.5k2](/packages/nterms-yii2-mailqueue)

PHPackages © 2026

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