{"id":22430550,"url":"https://github.com/martenframework/marten-sendgrid-emailing","last_synced_at":"2025-08-01T11:32:21.045Z","repository":{"id":153921136,"uuid":"575665538","full_name":"martenframework/marten-sendgrid-emailing","owner":"martenframework","description":"A Sendgrid emailing backend for the Marten web framework. ","archived":false,"fork":false,"pushed_at":"2025-04-19T11:45:23.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T16:58:30.651Z","etag":null,"topics":["crystal","email","emailing","framework","marten","sendgrid","web"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/martenframework.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":"2022-12-08T02:51:36.000Z","updated_at":"2025-04-19T11:45:26.000Z","dependencies_parsed_at":"2024-04-10T01:42:26.238Z","dependency_job_id":"1af6c602-af5b-484f-9ceb-aa68f96bd7a4","html_url":"https://github.com/martenframework/marten-sendgrid-emailing","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/martenframework/marten-sendgrid-emailing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-sendgrid-emailing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-sendgrid-emailing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-sendgrid-emailing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-sendgrid-emailing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martenframework","download_url":"https://codeload.github.com/martenframework/marten-sendgrid-emailing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martenframework%2Fmarten-sendgrid-emailing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268215578,"owners_count":24214363,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["crystal","email","emailing","framework","marten","sendgrid","web"],"created_at":"2024-12-05T21:08:48.786Z","updated_at":"2025-08-01T11:32:20.747Z","avatar_url":"https://github.com/martenframework.png","language":"Crystal","funding_links":[],"categories":["Marten shards"],"sub_categories":["Emailing"],"readme":"# Marten Sendgrid Emailing\n\n[![CI](https://github.com/martenframework/marten-sendgrid-emailing/workflows/Specs/badge.svg)](https://github.com/martenframework/marten-sendgrid-emailing/actions)\n[![CI](https://github.com/martenframework/marten-sendgrid-emailing/workflows/QA/badge.svg)](https://github.com/martenframework/marten-sendgrid-emailing/actions)\n\n**Marten Sendgrid Emailing** provides a [Sendgrid](https://sendgrid.com) backend that can be used with Marten web framework's [emailing system](https://martenframework.com/docs/emailing).\n\n## Installation\n\nSimply add the following entry to your project's `shard.yml`:\n\n```yaml\ndependencies:\n  marten_sendgrid_emailing:\n    github: martenframework/marten-sendgrid-emailing\n```\n\nAnd run `shards install` afterward.\n\n## Configuration\n\nFirst, add the following requirement to your project's `src/project.cr` file:\n\n```crystal\nrequire \"marten_sendgrid_emailing\"\n```\n\nThen you can configure your project to use the Sendgrid backend by setting the corresponding configuration option as follows:\n\n```crystal\nMarten.configure do |config|\n  config.emailing.backend = MartenSendgridEmailing::Backend.new(api_key: ENV.fetch(\"SENDGRID_API_KEY\"))\nend\n```\n\nThe `MartenSendgridEmailing::Backend` class needs to be initialized using a [Sendgrid API key](https://docs.sendgrid.com/ui/account-and-settings/api-keys). You should ensure that this value is kept secret and that it's not hardcoded in your config files.\n\nIf needed, it should be noted that you can enable [Sendgrid sandbox mode](https://docs.sendgrid.com/for-developers/sending-email/sandbox-mode) when initializing the backend object by setting the `sandbox_mode` argument to `true`:\n\n```crystal\nMarten.configure do |config|\n  config.emailing.backend = MartenSendgridEmailing::Backend.new(api_key: ENV.fetch(\"SENDGRID_API_KEY\"), sandbox_mode: true)\nend\n```\n\n## Authors\n\nMorgan Aubert ([@ellmetha](https://github.com/ellmetha)) and \n[contributors](https://github.com/martenframework/marten-sendgrid-emailing/contributors).\n\n## License\n\nMIT. See ``LICENSE`` for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartenframework%2Fmarten-sendgrid-emailing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartenframework%2Fmarten-sendgrid-emailing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartenframework%2Fmarten-sendgrid-emailing/lists"}