PHPackages                             machour/swiftmailer-ethereal-transport - 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. machour/swiftmailer-ethereal-transport

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

machour/swiftmailer-ethereal-transport
======================================

A simple Ethereal transport for Swift Mailer

1.0.0(3y ago)04.1k↓50%BSD-3-ClausePHPPHP ^8.0|^8.1

Since Sep 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/machour/swiftmailer-ethereal-transport)[ Packagist](https://packagist.org/packages/machour/swiftmailer-ethereal-transport)[ Docs](https://github.com/machour/swiftmailer-ethereal-transport)[ RSS](/packages/machour-swiftmailer-ethereal-transport/feed)WikiDiscussions main Synced 1mo ago

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

Ethereal transport for Swift Mailer
===================================

[](#ethereal-transport-for-swift-mailer)

This is a simple transport for Swift Mailer that uses [Ethreal](https://ethereal.email/), the fake SMTP service.

This transport is meant to be used while developing your application, in order to preview the message, without it getting actually sent.

Using this transport, you can set a callback that will be invoked with the URL to the message preview as its first and only argument.

Installation
------------

[](#installation)

```
composer require machour/swiftmailer-ethereal-transport
```

Usage
-----

[](#usage)

```
use Machour\SwiftMailerEtherealTransport\EtherealTransport;

// Create the Transport
$transport = (new EtherealTransport())
  // Get your credential at https://ethereal.email/create
  ->setUsername('your username')
  ->setPassword('your password')
  // Display the URL in your logs, store it session, or whatever ..
  ->setCallback(function (string $url) use ($logger) {
      $logger->debug("Email sent to Ethereal, see it at $url");
  });

// Create the Mailer using your created Transport
$mailer = new Swift_Mailer($transport);

// Create a message
$message = (new Swift_Message('Wonderful Subject'))
  ->setFrom(['john@doe.com' => 'John Doe'])
  ->setTo(['receiver@domain.org', 'other@domain.org' => 'A name'])
  ->setBody('Here is the message itself');

// Send the message
$result = $mailer->send($message);
```

Note
----

[](#note)

> **Note**Swift Mailer is deprecated, use this extension if you're stuck with a legacy app.

See also
--------

[](#see-also)

- [Ethereal](https://ethereal.email/)
- [Swift Mailer](https://swiftmailer.symfony.com/)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

1333d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50430982793b695a5a9a886a81b976606c71062b49cf38c12509801b1845b1b2?d=identicon)[machour](/maintainers/machour)

---

Top Contributors

[![machour](https://avatars.githubusercontent.com/u/304450?v=4)](https://github.com/machour "machour (6 commits)")

---

Tags

transportswiftmailerethereal

### Embed Badge

![Health badge](/badges/machour-swiftmailer-ethereal-transport/health.svg)

```
[![Health](https://phpackages.com/badges/machour-swiftmailer-ethereal-transport/health.svg)](https://phpackages.com/packages/machour-swiftmailer-ethereal-transport)
```

###  Alternatives

[cspoo/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

1031.1M](/packages/cspoo-swiftmailer-mailgun-bundle)[mailjet/mailjet-swiftmailer

A SwiftMailer transport implementation for Mailjet

261.2M9](/packages/mailjet-mailjet-swiftmailer)[aimeos/ai-swiftmailer

SwiftMailer adapter for Aimeos web shops and e-commerce solutions

20168.3k5](/packages/aimeos-ai-swiftmailer)[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)[goetas/to-swift-mime-parser

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

1244.4k2](/packages/goetas-to-swift-mime-parser)[andrewdyer/slim3-mailer

Email support for the Slim Framework using Twig and Swift Mailer.

1032.7k](/packages/andrewdyer-slim3-mailer)

PHPackages © 2026

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