rcrowe/swift_postmark-transport

Send emails with SwiftMailer using Postmark as the transport

Maintainers

👁 rcrowe

Package info

github.com/rcrowe/Swift_PostmarkTransport

pkg:composer/rcrowe/swift_postmark-transport

Statistics

Installs: 260

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 0

dev-master 2013-08-08 08:32 UTC

Requires

  • php: >=5.2.4

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 7ba70ca0544f48e866a96abae8ace17486e14b02

  • Rob Crowe <hello.woop@vivalacrowe.com>

emailpostmarkswiftmailer

This package is auto-updated.

Last update: 2026-06-29 01:01:03 UTC


README

Send emails with SwiftMailer using Postmark as the transport.

Original author: Øystein Riiser Gundersen oysteinrg@gmail.com

Forked to github by: Rob Crowe hello@vivalacrowe.com

Package installation

The Postmark transport is provided as Composer package which can be installed by adding the package to your composer.json file:

{
 "require": {
 "rcrowe\Swift_PostmarkTransport": "0.1.*"
 }
}

Usage

$transport = \rcrowe\Swift\Transport\Postmark::newInstance('POSTMARK_API_KEY');
$mailer = Swift_Mailer::newInstance($transport);

$message = Swift_Message::newInstance('Subjebt')
 ->setFrom('hello@vivalacrowe.com')
 ->setTo('')
 ->setBody('This can be any text from the web app');

$mailer->send($message);