{"id":20499671,"url":"https://github.com/apla/dataflows-task-mail","last_synced_at":"2026-04-21T06:01:39.901Z","repository":{"id":66835356,"uuid":"46662963","full_name":"apla/dataflows-task-mail","owner":"apla","description":"email task for dataflows","archived":false,"fork":false,"pushed_at":"2015-11-26T04:17:25.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T10:35:23.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/apla.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}},"created_at":"2015-11-22T13:59:27.000Z","updated_at":"2015-11-22T19:04:19.000Z","dependencies_parsed_at":"2023-02-21T04:15:14.149Z","dependency_job_id":null,"html_url":"https://github.com/apla/dataflows-task-mail","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"c273e93091623aaede2b6ad008c09e28a81785ee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apla%2Fdataflows-task-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apla%2Fdataflows-task-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apla%2Fdataflows-task-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apla%2Fdataflows-task-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apla","download_url":"https://codeload.github.com/apla/dataflows-task-mail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242089834,"owners_count":20070038,"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-15T18:18:03.762Z","updated_at":"2026-04-21T06:01:39.834Z","avatar_url":"https://github.com/apla.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dataflows-task-mail\nemail task for dataflows\n\n[![build](https://travis-ci.org/apla/dataflows-task-mail.svg)](https://travis-ci.org/apla/dataflows-task-mail)\n[![NPM Version](http://img.shields.io/npm/v/dataflows-task-mail.svg?style=flat)](https://www.npmjs.org/package/dataflows-task-mail)\n[![codecov.io](https://codecov.io/github/apla/dataflows-task-mail/coverage.svg?branch=master)](https://codecov.io/github/apla/dataflows-task-mail?branch=master)\n\n\nBatch sending of emails\n - supports templates\n - doesn't support guaranteed delivery of emails\n - doesn't support guaranteed sending of emails (sends to smtp transport)\n\nHowever, transport errors logged to console as warnings.\n\nThe task is completed as soon as all required fields for email sending are\npresent and all emails are forwarded to smtp transport for sending.\n\nIf there are problems with template, contents or recipients list task will fail.\n\n### Synopsis\n\nTests have usage examples for dataflows and standalone.\n\n### Parameters\n\n**fields** - email fields to send. If we're using recipients list\n email fields structure will be used as defaults\n\n```javascript\nfields = {\n\tfrom: {String},\n\tto: {Array|String},\n\tcc: {String}, // optional\n\tbcc: {String}, // optional\n\tsubject: {String},\n\ttext: {String}, // hardcoded text\n\thtml : {String}, // hardcoded html\n\ttemplate : {String}, // template directory to use by [email-templates](https://github.com/niftylettuce/node-email-templates)\n\tattachments: {Array} // optional\n}\n```\n\n**vars** - variables to expand in template\n\n**transport** - transport parameters\n\n```javascript\nvar mandrillTransport = {\n\tplugin: \"nodemailer-mandrill-transport\",\n\tconfig: {\n\t\tauth: {apiKey: \"kNjbd7IINJy5bEMf19sf2A\"}\n\t}\n}\n\nvar sendmailTransport = {\n\t\"plugin\": \"nodemailer-sendmail-transport\",\n\t\"config\": {\n\t\t\"path\": \"sendmail\",\n\t\t\"args\": []\n\t}\n};\n```\n\nWithout dataflows project you need to pass whole transport configuration\nin transport key and can use full paths for templates (absolute or within current dir)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapla%2Fdataflows-task-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapla%2Fdataflows-task-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapla%2Fdataflows-task-mail/lists"}