{"id":44326985,"url":"https://github.com/praserx/mailgo","last_synced_at":"2026-02-11T08:19:39.086Z","repository":{"id":150453358,"uuid":"622130726","full_name":"praserx/mailgo","owner":"praserx","description":"SMTP easy to use wrapper library for Go apps.","archived":false,"fork":false,"pushed_at":"2025-06-18T11:41:11.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T12:41:18.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/praserx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2023-04-01T07:58:03.000Z","updated_at":"2025-06-18T11:40:35.000Z","dependencies_parsed_at":"2025-06-18T12:29:36.255Z","dependency_job_id":null,"html_url":"https://github.com/praserx/mailgo","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/praserx/mailgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praserx%2Fmailgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praserx%2Fmailgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praserx%2Fmailgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praserx%2Fmailgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praserx","download_url":"https://codeload.github.com/praserx/mailgo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praserx%2Fmailgo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29329790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: 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":[],"created_at":"2026-02-11T08:19:38.281Z","updated_at":"2026-02-11T08:19:39.081Z","avatar_url":"https://github.com/praserx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mailgo\n\nmailgo is a simple and easy-to-use SMTP wrapper library for Go applications. It provides a convenient interface for sending emails, including support for attachments, multiple recipients, and authentication.\n\n## Features\n- Send emails via SMTP with minimal setup\n- Support for multiple recipients\n- Send emails with or without authentication\n- Add attachments to emails (since v1.4.0)\n- Customizable email headers\n- Error handling for each recipient\n\n## Installation\n\n```\ngo get github.com/mailgo\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"github.com/mailgo\"\n)\n\nfunc main() {\n    m := mailgo.NewMailer(mailgo.Options{\n        Host:     \"smtp.example.com\",\n        Port:     587,\n        Username: \"your_username\",\n        Password: \"your_password\",\n        From:     \"your@email.com\",\n    })\n\n    err := m.SendMail(mailgo.Message{\n        To:      []string{\"recipient1@example.com\", \"recipient2@example.com\"},\n        Subject: \"Test Email\",\n        Body:    \"This is a test email sent using mailgo.\",\n        Attachments: []string{\"/path/to/file.pdf\"}, // Optional: add attachments\n    })\n    if err != nil {\n        // handle error\n    }\n}\n```\n\n## Options\n\n- `Host`: SMTP server address\n- `Port`: SMTP server port\n- `Username`: SMTP username (optional for unauthenticated sending)\n- `Password`: SMTP password (optional for unauthenticated sending)\n- `From`: Sender email address\n\n## Message\n\n- `To`: List of recipient email addresses\n- `Subject`: Email subject\n- `Body`: Email body (plain text)\n- `Attachments`: List of file paths to attach (optional)\n\n## Changelog\nSee [CHANGELOG.md](CHANGELOG.md) for release notes.\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraserx%2Fmailgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraserx%2Fmailgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraserx%2Fmailgo/lists"}