{"id":15350814,"url":"https://github.com/grobmeier/postmark-java","last_synced_at":"2025-07-20T02:33:24.926Z","repository":{"id":3633848,"uuid":"4700478","full_name":"grobmeier/postmark-java","owner":"grobmeier","description":"Please use the official library: https://github.com/wildbit/postmark-java","archived":false,"fork":false,"pushed_at":"2018-04-10T07:22:02.000Z","size":1465,"stargazers_count":1,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T08:51:15.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jaredholdcroft/postmark-java","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grobmeier.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}},"created_at":"2012-06-18T12:12:29.000Z","updated_at":"2018-04-10T07:22:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"564a1eb8-8804-479a-8f2d-ee6b746142c0","html_url":"https://github.com/grobmeier/postmark-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grobmeier%2Fpostmark-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grobmeier%2Fpostmark-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grobmeier%2Fpostmark-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grobmeier%2Fpostmark-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grobmeier","download_url":"https://codeload.github.com/grobmeier/postmark-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247383996,"owners_count":20930392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-01T11:59:17.005Z","updated_at":"2025-04-05T18:31:59.832Z","avatar_url":"https://github.com/grobmeier.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"README\n======\n\nPLEASE USE THE OFFICIAL LIBRARY: https://github.com/wildbit/postmark-java\nThis fork is no longer maintained.\n\n\nThis library allows you to leverage the Postmark REST API to send emails.\n\nExample usage:\n\n```java\nList\u003cNameValuePair\u003e headers = new ArrayList\u003cNameValuePair\u003e();\n\nheaders.add(new NameValuePair(\"HEADER\", \"test\"));\n\nPostmarkMessage message = new PostmarkMessage(\"TO_ADDRESS\",\n        \"FROM_ADDRESS\",\n        \"REPLY_TO_ADDRESS\",\n        null,\n        \"SUBJECT\",\n        \"CONTENT\",\n        false,\n        null,\n        headers);\n\nPostmarkClient client = new PostmarkClient(\"POSTMARK_API_TEST\");\n\ntry {\n       client.sendMessage(message);\n} catch (PostmarkException pe) {\n       System.out.println(\"An error has occured : \" + pe.getMessage());\n}\n```\n\nAttachments can also be sent:\n\n```java\nAttachment attachment = new Attachment();\nattachment.setContentType(\"application/pdf\");\nattachment.setName(\"SomethingAwesome.pdf\");\n\n// convert file contents to base64\nFile file = new File(\"SomethingAwesome.pdf\");\nbyte[] ba = new byte[(int) file.length()];\nFileInputStream fis = new FileInputStream(file);\nFileis.read(ba);\nfis.close();\nattachment.setContent(new Base64().encodeToString(ba));\n\n// can handle multiple attachments\nVector\u003cAttachment\u003e v = new Vector\u003cAttachment\u003e();\nv.add(attachment);\nmessage.setAttachments(v);\n```\n\n### License:\n\nCopyright (C) 2012 Jared Holdcroft\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrobmeier%2Fpostmark-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrobmeier%2Fpostmark-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrobmeier%2Fpostmark-java/lists"}