Page MenuHomePhabricator

Add a Postmark API client
ClosedPublic

Authored by epriestley on Feb 6 2018, 5:17 PM.
Tags
None
Referenced Files
F13134089: D19008.diff
Thu, May 2, 1:10 AM
Unknown Object (File)
Mon, Apr 29, 4:23 PM
Unknown Object (File)
Thu, Apr 25, 12:02 AM
Unknown Object (File)
Fri, Apr 19, 9:40 PM
Unknown Object (File)
Fri, Apr 19, 7:17 PM
Unknown Object (File)
Wed, Apr 17, 12:57 PM
Unknown Object (File)
Mon, Apr 15, 4:54 PM
Unknown Object (File)
Thu, Apr 11, 5:07 PM
Subscribers
None

Details

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);

Diff Detail

Repository
rPHU libphutil
Branch
postmark1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19366
Build 26186: Run Core Tests
Build 26185: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 7 2018, 10:41 PM
This revision was automatically updated to reflect the committed changes.