Download the PHP package centralapps/mail-postmarkapp without Composer
On this page you can find all versions of the php package centralapps/mail-postmarkapp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download centralapps/mail-postmarkapp
More information about centralapps/mail-postmarkapp
Files in centralapps/mail-postmarkapp
Download centralapps/mail-postmarkapp
More information about centralapps/mail-postmarkapp
Files in centralapps/mail-postmarkapp
Vendor centralapps
Package mail-postmarkapp
Short Description PostMarkApp Support for Abstract Mail Component
License
Package mail-postmarkapp
Short Description PostMarkApp Support for Abstract Mail Component
License
Please rate this library. Is it a good library?
Informations about the package mail-postmarkapp
PostmarkApp Mail Component for Abtract Mail Component
This is the postmarkapp integration for the centralapps\mail component, an abstract mail sending and receiving component.
Created by Michael Peacock
Installation
Using Composer
-
Add to your
composer.json
file{ "require": { "centralapps/mail": "dev-master", "centralapps/mail-postmarkapp": "dev-master" } }
-
Download composer
curl -s https://getcomposer.org/installer | php
-
Install the dependencies
php composer.phar install
Usage
<?php
require_once( __DIR__ . '/../vendor/autoload.php');
// Configs & Create a mail transportation layer and a dispatcher
$configuration = new \CentralApps\PostMarkApp\Configuration();
$configuration['api_key'] = "YOUR POSTMARKAPP API KEY GOES HERE";
$transport = new \CentralApps\PostMarkApp\Transport($configuration);
$dispatcher = new \CentralApps\Mail\Dispatcher($transport);
// Create a sender
$sender = new \CentralApps\Mail\SendersReceiversEtc\Sender("[email protected]", "Sender Name");
// Create a recipient
$recipient = new \CentralApps\Mail\SendersReceiversEtc\Recipient("[email protected]", "Recipient Name");
// Create a message
$message = new \CentralApps\PostMarkApp\Message();
$message->setSender($sender);
$message->addRecipient($recipient);
$message->setSubject('Subject');
$message->setPlainTextMessage("Hi there");
// Send the message
$dispatcher->send($message);
All versions of mail-postmarkapp with dependencies
PHP Build Version
Package Version
The package centralapps/mail-postmarkapp contains the following files
Loading the files please wait ....