{"id":18002472,"url":"https://github.com/iamd3vil/postal_go","last_synced_at":"2025-03-26T08:31:14.206Z","repository":{"id":57696626,"uuid":"493108767","full_name":"iamd3vil/postal_go","owner":"iamd3vil","description":"Go client library for Postal(https://github.com/postalserver/postal)","archived":false,"fork":false,"pushed_at":"2022-05-17T06:46:59.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T17:50:57.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/iamd3vil.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":"2022-05-17T05:34:16.000Z","updated_at":"2023-09-02T04:34:37.000Z","dependencies_parsed_at":"2022-09-14T02:11:11.922Z","dependency_job_id":null,"html_url":"https://github.com/iamd3vil/postal_go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamd3vil%2Fpostal_go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamd3vil%2Fpostal_go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamd3vil%2Fpostal_go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamd3vil%2Fpostal_go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamd3vil","download_url":"https://codeload.github.com/iamd3vil/postal_go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618728,"owners_count":20645054,"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-29T23:21:59.907Z","updated_at":"2025-03-26T08:31:13.791Z","avatar_url":"https://github.com/iamd3vil.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://zerodha.tech\"\u003e\u003cimg src=\"https://zerodha.tech/static/images/github-badge.svg\" align=\"right\" /\u003e\u003c/a\u003e\n\n# Postal-Go\n\nThis is a client library for sending emails through [Postal](https://github.com/postalserver/postal).\n\nUses the [Send a raw RFC2882 message](http://apiv1.postalserver.io/controllers/send/raw) api.\n\n## Usage\n\n```go\nclient, err := NewAPIClient(postalAddr, postalToken, \u0026http.Client{\n\tTimeout: 10 * time.Second,\n})\nif err != nil {\n\tlog.Fatalf(\"error creating api client: %v\", err)\n}\n\nmsg := Message{\n\tFrom:      fromAddr,\n\tTo:        []string{toAddr},\n\tSubject:   \"Test Email\",\n\tPlainBody: \"Test Email from postal_go\",\n}\nif err := msg.AttachFile(\"test/hello.txt\"); err != nil {\n\tlog.Fatalf(\"error attaching file: %s\", err)\n}\n\nresp, err := client.SendMessage(msg)\nif err != nil {\n\tlog.Fatalf(\"error from send message: %v\", err)\n}\n```\n\n## Docs\n\nSee the docs at [Godoc](https://pkg.go.dev/github.com/iamd3vil/postal_go).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamd3vil%2Fpostal_go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamd3vil%2Fpostal_go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamd3vil%2Fpostal_go/lists"}