Skip to content
Postmark transport for Swift Mailer
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.editorconfig
.gitignore
.lgtm
.scrutinizer.yml
.travis.yml
CODE_OF_CONDUCT.md
LICENSE
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

Postmark Transport

Build Status Latest Stable Version

A full featured postmark transport for Swiftmailer, allowing attachments, html emails / parts, cc, bcc and sending multiple emails with one api call.

Usage

$transport = Swift_PostmarkTransport::newInstance('your api key');

$mailer = Swift_Mailer::newInstance($transport);
$message = Swift_Message::newInstance();

// Add stuff to your message
$message->setFrom('test@example.com');
$message->setTo('test2@example.com');
$message->setSubject('Test');
$message->setBody('Test Email');

$mailer->send($message);

Usage with Symfony 2

Define Postmark Transport as service:

services:
    swift_transport.postmark:
        class: Openbuildings\Postmark\Swift_PostmarkTransport
        arguments:
            - POSTMARK_API_KEY

In config.yml change transport to defined service:

swiftmailer:
    transport: swift_transport.postmark

License

Copyright (c) 2012-2013, OpenBuildings Ltd. Developed by Ivan Kerin as part of clippings.com

Under BSD-3-Clause license, read LICENSE file.

You can’t perform that action at this time.