{"id":36764254,"url":"https://github.com/mattevans/postmark-go","last_synced_at":"2026-01-12T12:58:26.202Z","repository":{"id":46315495,"uuid":"68876773","full_name":"mattevans/postmark-go","owner":"mattevans","description":"✉️  Golang bindings for the Postmark API","archived":false,"fork":false,"pushed_at":"2023-11-21T09:15:25.000Z","size":59,"stargazers_count":18,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T00:26:44.368Z","etag":null,"topics":["email","go","golang","golang-library","postmark","postmark-api"],"latest_commit_sha":null,"homepage":"http://developer.postmarkapp.com/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattevans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-22T02:30:24.000Z","updated_at":"2023-09-13T10:39:45.000Z","dependencies_parsed_at":"2024-06-19T00:22:38.780Z","dependency_job_id":null,"html_url":"https://github.com/mattevans/postmark-go","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mattevans/postmark-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattevans%2Fpostmark-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattevans%2Fpostmark-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattevans%2Fpostmark-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattevans%2Fpostmark-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattevans","download_url":"https://codeload.github.com/mattevans/postmark-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattevans%2Fpostmark-go/sbom","scorecard":{"id":626373,"data":{"date":"2025-08-11","repo":{"name":"github.com/mattevans/postmark-go","commit":"58097da16398a05279d3111242ec67b3155194b8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T06:36:05.125Z","repository_id":46315495,"created_at":"2025-08-21T06:36:05.125Z","updated_at":"2025-08-21T06:36:05.125Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","go","golang","golang-library","postmark","postmark-api"],"created_at":"2026-01-12T12:58:26.124Z","updated_at":"2026-01-12T12:58:26.189Z","avatar_url":"https://github.com/mattevans.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postmark-go\n\n[![GoDoc](https://godoc.org/github.com/mattevans/postmark-go?status.svg)](https://godoc.org/github.com/mattevans/postmark-go)\n[![Build Status](https://travis-ci.org/mattevans/postmark-go.svg?branch=master)](https://travis-ci.org/mattevans/postmark-go)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/mattevans/postmark-go/blob/master/LICENSE)\n\npostmark-go is a [Go](http://golang.org) client library for accessing the Postmark API (http://developer.postmarkapp.com/).\n\nThis is an unofficial library that is not affiliated with [Postmark](http://postmarkapp.com). Official libraries are available\n[here](http://developer.postmarkapp.com/developer-official-libs.html).\n\nv1.0 Breaking Changes\n---------------------\nThe signature of `NewClient` has changed. It now accepts options, one of which can be a custom HTTP client. Please pin to an older version if required.\n\nInstallation\n-----------------\n\n`go get -u github.com/mattevans/postmark-go`\n\nSetup\n-----------------\n\nYou'll need to pass an `SERVER_API_TOKEN` when initializing the client. This token can be\nfound under the 'Credentials' tab of your Postmark server. More info [here](http://developer.postmarkapp.com/developer-api-overview.html#authentication).\n\nClient + Authentication\n-----------------------\n```go\nclient := postmark.NewClient(\n    postmark.WithClient(\u0026http.Client{\n        Transport: \u0026postmark.AuthTransport{Token: \"SERVER_API_TOKEN\"},\n    }),\n)\n```\n\nExample usage (with Template)\n-------------\n\n```go\nemailReq := \u0026postmark.Email{\n  From:       \"mail@company.com\",\n  To:         \"jack@sparrow.com\",\n  TemplateID: 123456,\n  TemplateModel: map[string]interface{}{\n    \"name\": \"Jack\",\n    \"action_url\": \"http://click.company.com/welcome\",\n  },\n  Tag:        \"onboarding\",\n  TrackOpens: true,\n  Metadata: map[string]string{\n    \"client-id\": \"123456\",\n    \"client-ip\": \"127.0.0.1\",\n  },\n}\n\nemail, response, err := client.Email.Send(emailReq)\nif err != nil {\n  return err\n}\n```\n\nExample usage (with HtmlBody)\n-------------\n\n```go\nemailReq := \u0026postmark.Email{\n  From:       \"mail@company.com\",\n  To:         \"jack@sparrow.com\",\n  Subject:    \"My Test Email\",\n  HtmlBody:   \"\u003chtml\u003e\u003cbody\u003e\u003cstrong\u003eHello\u003c/strong\u003e dear Postmark user.\u003c/body\u003e\u003c/html\u003e\",\n  TextBody:   \"Hello dear Postmark user\",\n  Tag:        \"onboarding\",\n  TrackOpens: true,\n  Metadata: map[string]string{\n    \"client-id\": \"123456\",\n    \"client-ip\": \"127.0.0.1\",\n  },\n}\n\nemail, response, err := client.Email.Send(emailReq)\nif err != nil {\n  return err\n}\n```\n\nWhat's Implemented?\n----------------\n\nAt the moment only a handful of the more common endpoints have been implemented. Open an\nissue (or PR) if you required something that's missing.\n\n- Send Email - [API Docs](http://developer.postmarkapp.com/developer-api-email.html#send-email) | [Example](examples/send-email/main.go)\n- Send Email \u0026 Attachment - [API Docs](http://developer.postmarkapp.com/developer-api-email.html#send-email) | [Example](examples/send-email-attachment/main.go)\n- Batch Emails - [API Docs](http://developer.postmarkapp.com/developer-api-email.html#batch-emails) | [Example](examples/batch-emails/main.go)\n- Get Delivery Stats - [API Docs](http://developer.postmarkapp.com/developer-api-bounce.html#delivery-stats) | [Example](examples/bounce/main.go)\n- Get Bounces - [API Docs](http://developer.postmarkapp.com/developer-api-bounce.html#bounces) | [Example](examples/bounce/main.go)\n- Get Single Bounce - [API Docs](https://postmarkapp.com/developer/api/bounce-api#single-bounce)\n- Get Bounce Dump - [API Docs](https://postmarkapp.com/developer/api/bounce-api#bounce-dump)\n- Activate a Bounce - [API Docs](https://postmarkapp.com/developer/api/bounce-api#activate-bounce)\n- Get Bounced Tags - [API Docs](https://postmarkapp.com/developer/api/bounce-api#bounced-tags)\n- List Templates - [API Docs](https://postmarkapp.com/developer/api/templates-api#list-templates)\n- Get Single Template - [API Docs](https://postmarkapp.com/developer/api/templates-api#get-template)\n\nThanks \u0026amp; Acknowledgements :ok_hand:\n----------------\n\nThe packages's architecture is adapted from\n[go-github](https://github.com/google/go-github), created by [Will\nNorris](https://github.com/willnorris). :beers:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattevans%2Fpostmark-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattevans%2Fpostmark-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattevans%2Fpostmark-go/lists"}