{"id":17954348,"url":"https://github.com/txthinking/mailx","last_synced_at":"2025-03-25T00:31:57.756Z","repository":{"id":57607763,"uuid":"49275547","full_name":"txthinking/mailx","owner":"txthinking","description":"A lightweight SMTP mail library","archived":false,"fork":false,"pushed_at":"2023-03-25T13:06:22.000Z","size":37,"stargazers_count":29,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T05:55:28.636Z","etag":null,"topics":["email","go","mail","smtp"],"latest_commit_sha":null,"homepage":"https://www.txthinking.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/txthinking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"txthinking","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-01-08T14:09:29.000Z","updated_at":"2025-01-22T11:10:11.000Z","dependencies_parsed_at":"2024-06-20T17:22:48.858Z","dependency_job_id":"e1e269e7-b363-454f-bd61-3719ddc64975","html_url":"https://github.com/txthinking/mailx","commit_stats":null,"previous_names":["txthinking/xmail"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fmailx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fmailx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fmailx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fmailx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txthinking","download_url":"https://codeload.github.com/txthinking/mailx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377921,"owners_count":20605374,"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":["email","go","mail","smtp"],"created_at":"2024-10-29T10:14:09.571Z","updated_at":"2025-03-25T00:31:56.888Z","avatar_url":"https://github.com/txthinking.png","language":"Go","readme":"## mailx\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/txthinking/mailx)](https://goreportcard.com/report/github.com/txthinking/mailx)\n[![GoDoc](https://godoc.org/github.com/txthinking/mailx?status.svg)](https://godoc.org/github.com/txthinking/mailx)\n\nA lightweight SMTP mail library\n\n❤️ A project by [txthinking.com](https://www.txthinking.com)\n\n### Install\n\n```\n$ go get github.com/txthinking/mailx\n```\n\n### Example\n\n```\nserver := \u0026mailx.SMTP{\n    Server:   \"smtp.mailtrap.io\",\n    Port:     465,\n    UserName: \"e3f534cfe656f4\",\n    Password: \"b6e38ddc0f1e9d\",\n}\n\nmessage := \u0026mailx.Message{\n    From: \u0026mail.Address{\n        Name:    \"mailx\",\n        Address: \"739f35c64d-48cf45@inbox.mailtrap.io\",\n    },\n    To: []*mail.Address{\n        {\n            Name:    \"Cloud\",\n            Address: \"cloud@txthinking.com\",\n        },\n    },\n    Subject: \"Hello\",\n    Body:    \"I \u003cb\u003elove\u003c/b\u003e U.\",\n    Attachment: []string{\n        \"/etc/hosts\",\n    },\n}\n\nif err := server.Send(message); err != nil {\n    log.Fatal(err)\n}\n```\n\n## License\n\nLicensed under The MIT License\n","funding_links":["https://github.com/sponsors/txthinking"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxthinking%2Fmailx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxthinking%2Fmailx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxthinking%2Fmailx/lists"}