Skip to content

rcrowe/Swift_PostmarkTransport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftMailer Postmark transport

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);

About

Send emails with SwiftMailer using Postmark as the transport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages