Ref T13053. Prepares to add Postmark support.
Details
Details
- Reviewers
amckinley - Maniphest Tasks
- T13053: Plans: Mail Tags and Failover
- Commits
- rPHU57a137027d9b: Add a Postmark API client
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
Diff Detail
- Repository
- rPHU libphutil
- Lint
Lint Not Applicable - Unit
Tests Not Applicable