Page MenuHomePhabricator

Add a Postmark API client
ClosedPublic

Authored by epriestley on Feb 6 2018, 5:17 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Thu, Apr 11, 8:19 AM
Unknown Object (File)
Thu, Apr 11, 6:19 AM
Unknown Object (File)
Wed, Mar 20, 11:58 AM
Unknown Object (File)
Feb 21 2024, 9:54 AM
Unknown Object (File)
Feb 13 2024, 7:08 AM
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.