Postmark
send-single-email
deliverystats
get-bounces
6.12

Postmark

John Clements <[email protected]>

 (require postmark) package: postmark
This collection allows the use of the Postmark API.

Postmark is an e-mail delivery service.

The Postmark API uses a REST interface, via HTTP.

In order to use Postmark, users must sign up with Postmark to obtain credentials. (Postmark is not free; as of 2015-11, it costs about 1/8 of a cent to send an email to a single recipient.)

This interface is incredibly thin; adding new calls is super-simple. In fact, the abstract-o-matic inside me wants to simplify all of this to a simple declarative api-specification-language.

For more information on the API, see http://developer.postmarkapp.com/

procedure

(send-single-email server-api-key    
  #:From from    
  #:To to    
  #:Body body    
  [#:Subject subject])  jsexpr?
  server-api-key : bytes?
  from : string?
  to : string?
  body : string?
  subject : (or/c string? #f) = #f
Sends a single e-mail. Use a comma-separated string for multiple recipients. Use the server-api-key supplied by Postmark.

procedure

(deliverystats server-api-key)  jsexpr?

  server-api-key : bytes?
Return delivery statistics for the server associated with the API key.

procedure

(get-bounces server-api-key    
  #:count count    
  #:offset offset)  jsexpr?
  server-api-key : bytes?
  count : natural?
  offset : Natural?
Gets the text of bounced messages from an ordered list stored by the server. The count indicates the maximum number of bounced messages to be obtained, and offset indicates the point in the ordered list at which the server starts returning messages.