PHPackages                             fterenzani/swiftmail - 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. fterenzani/swiftmail

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

fterenzani/swiftmail
====================

An implementation of the Facade pattern for Swift Mailer 5 and later

1.1(12y ago)131LGPLPHPPHP &gt;=5.2.4

Since Jul 30Pushed 12y ago1 watchersCompare

[ Source](https://github.com/fterenzani/SwiftMail)[ Packagist](https://packagist.org/packages/fterenzani/swiftmail)[ Docs](https://github.com/fterenzani/SwiftMail)[ RSS](/packages/fterenzani-swiftmail/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

SwiftMail is an implementation of the [Facade pattern](http://en.wikipedia.org/wiki/Facade_pattern) for [Swift Mailer](http://swiftmailer.org/) 4.x: a powerful component based mailing library for PHP by Chris Corbyn.

A simple e-mail can be sent in this way:

```
SwiftMail::newInstance($subject, $message)
    ->setTo($to)
    ->setFrom($from)
    ->send()
;

```

By default SwiftMail try to send emails using the Swift\_MailTransport (that use the mail function of PHP). The default transport can be changed using the static method SwiftMail::setDefaultTransport.

```
$smtp = Swift_SmtpTransport::newInstance($host, $port)
    ->setUsername($user)
    ->setPassword($pass)
;

SwiftMail::setDefaultTransport($smtp);

```

A list of Tranports is available in the [Swift Mailer documentation](http://swiftmailer.org/docs/transport-types).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Unknown

Total

1

Last Release

4718d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d4fc036c54e34fbeff2a862e3f2b836f534b4df7748b81c660ff6bd262704bd?d=identicon)[fterenzani](/maintainers/fterenzani)

---

Top Contributors

[![fterenzani](https://avatars.githubusercontent.com/u/377921?v=4)](https://github.com/fterenzani "fterenzani (10 commits)")

---

Tags

mailmailerswiftmailer

### Embed Badge

![Health badge](/badges/fterenzani-swiftmail/health.svg)

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

###  Alternatives

[yuan1994/tp-mailer

A powerful and beautiful php mailer for All of ThinkPHP and Other PHP Frameworks based SwiftMailer

812.0k1](/packages/yuan1994-tp-mailer)[cattong/think-mailer

A powerful and beautiful php mailer for All of ThinkPHP and Other PHP Frameworks based SwiftMailer

361.9k1](/packages/cattong-think-mailer)[aimeos/ai-swiftmailer

SwiftMailer adapter for Aimeos web shops and e-commerce solutions

19168.5k5](/packages/aimeos-ai-swiftmailer)[goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

1244.7k2](/packages/goetas-to-swift-mime-parser)

PHPackages © 2026

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