Page MenuHomePhabricator

Add a Postmark API client
ClosedPublic

Authored by epriestley on Feb 6 2018, 5:17 PM.
Tags
None
Referenced Files
F15464310: D19008.id45573.diff
Wed, Apr 2, 8:18 AM
F15460916: D19008.id45573.diff
Tue, Apr 1, 3:20 AM
F15455499: D19008.id45595.diff
Sun, Mar 30, 1:50 AM
F15446695: D19008.id.diff
Thu, Mar 27, 7:50 PM
F15434983: D19008.diff
Tue, Mar 25, 6:15 AM
F15413051: D19008.id45595.diff
Wed, Mar 19, 4:42 PM
F15408312: D19008.diff
Tue, Mar 18, 10:25 PM
Unknown Object (File)
Feb 21 2025, 6:29 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.