{"id":21696606,"url":"https://github.com/madetech/createsend-rails","last_synced_at":"2025-04-12T12:10:49.169Z","repository":{"id":150895418,"uuid":"58554998","full_name":"madetech/createsend-rails","owner":"madetech","description":"Smart Transactional Emails for Campaign Monitor in Rails","archived":false,"fork":false,"pushed_at":"2020-09-17T15:00:05.000Z","size":34,"stargazers_count":3,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T06:51:09.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/madetech.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-11T15:03:39.000Z","updated_at":"2022-10-28T05:49:08.000Z","dependencies_parsed_at":"2023-07-09T12:48:27.676Z","dependency_job_id":null,"html_url":"https://github.com/madetech/createsend-rails","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/madetech%2Fcreatesend-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fcreatesend-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fcreatesend-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fcreatesend-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madetech","download_url":"https://codeload.github.com/madetech/createsend-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565074,"owners_count":21125417,"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-11-25T19:20:47.926Z","updated_at":"2025-04-12T12:10:49.160Z","avatar_url":"https://github.com/madetech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Campaign Monitor - Smart Transactional Emails for Rails\n\n[![Code Climate](https://codeclimate.com/github/madetech/createsend-rails/badges/gpa.svg)](https://codeclimate.com/github/madetech/createsend-rails) [![Build Status](https://travis-ci.org/madetech/createsend-rails.svg?branch=master)](https://travis-ci.org/madetech/createsend-rails) [![Test Coverage](https://codeclimate.com/github/madetech/createsend-rails/badges/coverage.svg)](https://codeclimate.com/github/madetech/createsend-rails/coverage)\n\n\nThe `create_send_rails` Gem drops into ActionMailer and sends transactional emails via the [Campaign Monitor API](https://www.campaignmonitor.com/api/), using its [Smart Email](https://www.campaignmonitor.com/api/transactional/#send_a_smart_email) feature.\n\nIt updates ActionMailer so it defaults to JSON mailer views and allows you to define the data required for each of your mailers.\n\n## Getting Started\n\nTo get started, add the following line to your applications `Gemfile`:\n\n```ruby\ngem 'createsend-rails'\n```\nThen update your environment files and set `delivery_method` to `create_send` and include your CampaignMonitor `api_key` within the settings block.\n\n```ruby\nconfig.action_mailer.delivery_method = :create_send\nconfig.action_mailer.create_send_settings = {\n    api_key: 'INSERT_API_KEY'\n}\n```\nNow go into your `views/*_mailer/` and add a `.json` view, which defines the data attributes required by your Smart Email template. Below is an example of a password reset email.\n\n```json\n{\n    \"smart_email_id\": \"SMART_EMAIL_ID\",\n    \"language\": \"\u003c%= @user.language %\u003e\",\n    \"name\": \"\u003c%= @user.name %\u003e\",\n    \"reset_url\": \"\u003c%= @edit_password_reset_url %\u003e\"\n}\n```\n\n## Credits\n\n![made](https://s3-eu-west-1.amazonaws.com/made-assets/googleapps/google-apps.png)\n\nDeveloped and maintained by [Made Tech Ltd](https://www.madetech.com/). Key contributions:\n\n\n* [Andrew Scott](https://github.com/askl56)\n* [Rory MacDonald](https://github.com/rorymacdonald)\n* [Seb Ashton](https://github.com/SebAshton)\n\n\n## License\nCopyright © 2016 [Made Tech Ltd](https://www.madetech.com/). It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadetech%2Fcreatesend-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadetech%2Fcreatesend-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadetech%2Fcreatesend-rails/lists"}