1. Go to this page and download the library: Download znarkus/postmark library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
znarkus / postmark example snippets
// Create a "server" in your "rack", then copy it's API key
$postmarkApiKey = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
// Create a message and send it
Postmark\Mail::compose($postmarkApiKey)
->from('[email protected]', 'John Smith')
->addTo('[email protected]', 'Jane Smith')
->subject('Subject')
->messagePlain('Plaintext message')
->send();