PHP code example of jonom / silverstripe-postmark-mailer
1. Go to this page and download the library: Download jonom/silverstripe-postmark-mailer 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/ */
jonom / silverstripe-postmark-mailer example snippets
Email::set_mailer(new PostmarkMailer());
// Send email through Postmark in live environment only
if (Director::isLive()) {
Email::set_mailer(new PostmarkMailer());
}