Skip to content

mkpeacock/PostmarkApp-PHP-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

PHP 5 Library for PostmarkApp

PHP 5 Library for sending emails using PostmarkApp. There were a number of other available libraries, either for specific frameworks, or which didn't work out of the box due to errors. So to ensure I had a fully working library, and to help me understand the API better, I thought I'd write my own library.

Usage

require_once( 'postmark.php' );
$postmark = new Postmark( 'Your-API-Key leave blank to use class defined key' );
$postmark->setSender( '[email protected]', 'Test Sender' );
$postmark->addRecipient( '[email protected]', 'Test Recipient' );
$postmark->setSubject('Subject');
$postmark->setMessage( 'Plain text message' );
if( $postmark->send() )
{
	// do something
}
else
{
	// do something else 
}

About

PHP 5 Library for PostmarkApp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published