{"id":18645716,"url":"https://github.com/fliplet/fliplet-widget-email-provider","last_synced_at":"2025-04-11T12:31:33.172Z","repository":{"id":21120632,"uuid":"91795756","full_name":"Fliplet/fliplet-widget-email-provider","owner":"Fliplet","description":"Email Provider","archived":false,"fork":false,"pushed_at":"2022-06-06T09:46:16.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T13:51:10.134Z","etag":null,"topics":["email","widget"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fliplet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-19T10:37:05.000Z","updated_at":"2022-05-18T13:30:34.000Z","dependencies_parsed_at":"2022-07-24T23:46:42.307Z","dependency_job_id":null,"html_url":"https://github.com/Fliplet/fliplet-widget-email-provider","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/Fliplet%2Ffliplet-widget-email-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fliplet%2Ffliplet-widget-email-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fliplet%2Ffliplet-widget-email-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fliplet%2Ffliplet-widget-email-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fliplet","download_url":"https://codeload.github.com/Fliplet/fliplet-widget-email-provider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401962,"owners_count":21097328,"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","widget"],"created_at":"2024-11-07T06:16:56.311Z","updated_at":"2025-04-11T12:31:32.919Z","avatar_url":"https://github.com/Fliplet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Email provider\n\n## Provider usage\n\n```js\nFliplet.Widget.open('com.fliplet.email-provider', {\n  data: {\n    subject: 'Hello world'\n  }\n}).then(function (result) {\n\n});\n```\n\n## Sample result\n\n```json\n{\n  \"subject\": \"Hi {{name}}\",\n  \"html\": \"\u003cp\u003eHi {{name}}, how are you?\u003c/p\u003e\",\n  \"to\": [\n    {\n      \"email\": \"alice@example.org\",\n      \"name\": \"Alice\"\n    },\n    {\n      \"email\": \"bob@example.org\"\n    },\n    {\n      \"email\": \"{{email}}\",\n      \"name\": \"{{name}}\"\n    }\n  ]\n}\n```\n\n---\n\n## Using the provider result\n\n### 1. As a data source hook\n\n```js\nFliplet.DataSources.update(1, {\n  hooks: [{\n    runOn: [\"insert\", \"update\"],\n    type: \"email\",\n    payload: result\n  }]\n});\n```\n\n### 2. As a data source validation template\n\n```js\nFliplet.DataSources.update(1, {\n  definition: {\n    validtion: {\n      email: {\n        template: result,\n        ..,\n        ..\n      }\n    }\n  }\n});\n```\n\n### 3. As a template for `fliplet-communicate`\n\n```\nFliplet.Communicate.sendEmail(result);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliplet%2Ffliplet-widget-email-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffliplet%2Ffliplet-widget-email-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliplet%2Ffliplet-widget-email-provider/lists"}