{"size": 873, "ext": "scrbl", "max_stars_repo_path": "mail/koyo-postmark.scrbl", "max_stars_repo_name": "Bogdanp/koyo-postmark", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "mail/koyo-postmark.scrbl", "max_issues_repo_name": "Bogdanp/koyo-postmark", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "mail/koyo-postmark.scrbl", "max_forks_repo_name": "Bogdanp/koyo-postmark", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.1785714286, "max_line_length": 87, "alphanum_fraction": 0.6506300115}
#lang scribble/manual

@(require (for-label koyo/mail
                     koyo/mail/postmark
                     postmark
                     racket/base
                     racket/contract
                     racket/string))

@title{Postmark Adapter for Koyo}
@defmodule[koyo/mail/postmark]

@(define postmark-url "https://postmarkapp.com")
@(define postmark-link (link postmark-url "Postmark"))
@(define adapter-tech (tech #:doc '(lib "koyo/scribblings/koyo.scrbl") "mail adapter"))

This package exposes a koyo @adapter-tech for interfacing with @|postmark-link|.

@section{Reference}

@defproc[(postmark-mail-adapter? [v any/c]) boolean?]{
  Returns @racket[#t] when @racket[v] is a Postmark @|adapter-tech|.
}

@defproc[(make-postmark-mail-adapter [client postmark?]) mail-adapter?]{
  Creates a @adapter-tech that uses the @|postmark-link| API to send e-mail.
}
