{"id":16228986,"url":"https://github.com/doughtnerd/simple-mailer","last_synced_at":"2025-04-08T04:52:05.053Z","repository":{"id":113806086,"uuid":"98578365","full_name":"doughtnerd/simple-mailer","owner":"doughtnerd","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-27T22:26:43.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T03:41:17.757Z","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/doughtnerd.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":"2017-07-27T20:45:11.000Z","updated_at":"2017-07-27T22:26:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"6142bb54-c7a6-45b4-b824-1ff719f4214e","html_url":"https://github.com/doughtnerd/simple-mailer","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"07bde5ff0134d42818e4c139a2d9814b81d2f9c1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doughtnerd%2Fsimple-mailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doughtnerd%2Fsimple-mailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doughtnerd%2Fsimple-mailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doughtnerd%2Fsimple-mailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doughtnerd","download_url":"https://codeload.github.com/doughtnerd/simple-mailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779760,"owners_count":20994572,"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-10-10T12:57:02.077Z","updated_at":"2025-04-08T04:52:05.032Z","avatar_url":"https://github.com/doughtnerd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Mailer\n=========\n\nA small library aiming to make sending emails with node a little more streamlined\n\n## Installation\n\n  `npm install @doughtnerd/simple-mailer`\n\n## Usage\n    \n    const mailer = require('simple-mailer');\n\n    //Example configs for using GMAIL.\n    //Check the Nodemailer website for other options\n    let mailerObject = new mailer.SimpleMailer(\n            {\n                service: \"gmail\",\n                port:465,\n                auth: {\n                    user: 'your-email@gmail.com'',\n                    pass: 'YourAPIKey'\n                },\n                connectionTimeout :20000,\n            }\n        );\n        \n    const email = new mailer.SimpleMessage();\n    \n    email.addRecipient('example@test.com');\n    email.setSubject(\"Test\");\n    email.setContent(\"\u003cdiv\u003e\u003cp\u003eHello world\u003c/p\u003e\u003c/div\u003e\");\n    \n    mailerObject.sendMessage(email).then((info)=\u003e{\n        //Do something with the success data if you want...\n    }).catch((err)=\u003e{\n        //Catch any errors in sending the message here.\n    });\n  \n\n## Tests\n\n  `npm test`\n\n## Contributing\n\nIn lieu of a formal style guide, take care to maintain the existing coding style. \nAdd unit tests for any new or changed functionality. \nLint and test your code.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoughtnerd%2Fsimple-mailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoughtnerd%2Fsimple-mailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoughtnerd%2Fsimple-mailer/lists"}