HomePhabricator

Add a Postmark API client

Description

Add a Postmark API client

Summary: Ref T13053. Prepares to add Postmark support.

Test Plan:
Used this script to send some mail using the client:

#!/usr/bin/env php
<?php

require_once dirname(__FILE__).'/scripts/__init_script__.php';

$params = array(
  'From' => 'epriestley@phacility.com',
  'To' => 'epriestley@phacility.com',
  'Subject' => 'Words of Wisdom',
  'TextBody' => '"Quack Quack", said the duck.',
);

$result = id(new PhutilPostmarkFuture())
  ->setAccessToken($argv[1])
  ->setMethod('email', $params)
  ->resolve();

var_dump($result);

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13053

Differential Revision: https://secure.phabricator.com/D19008

Details

Provenance
epriestleyAuthored on Feb 6 2018, 5:16 PM
epriestleyPushed on Feb 8 2018, 1:55 AM
Reviewer
amckinley
Differential Revision
D19008: Add a Postmark API client
Parents
rPHU30b002c481a6: Improve PHP7 handling of include-time parser-like fatals like "class must…
Branches
Unknown
Tags
Unknown
Tasks
T13053: Plans: Mail Tags and Failover
Build Status
Buildable 19389
Build 26226: Run Core Tests