{"id":21893369,"url":"https://github.com/norjs/mailer","last_synced_at":"2026-05-19T15:12:17.289Z","repository":{"id":44990184,"uuid":"226651302","full_name":"norjs/mailer","owner":"norjs","description":"Markdown SMTP Email Sending Library","archived":false,"fork":false,"pushed_at":"2022-01-15T02:06:20.000Z","size":49,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T02:47:14.279Z","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/norjs.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":"2019-12-08T10:41:09.000Z","updated_at":"2019-12-08T13:29:56.000Z","dependencies_parsed_at":"2022-09-22T15:13:59.495Z","dependency_job_id":null,"html_url":"https://github.com/norjs/mailer","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/norjs%2Fmailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norjs%2Fmailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norjs%2Fmailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norjs%2Fmailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/norjs","download_url":"https://codeload.github.com/norjs/mailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902921,"owners_count":20529114,"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-28T13:13:47.618Z","updated_at":"2026-05-19T15:12:17.237Z","avatar_url":"https://github.com/norjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"@norjs/mailer\n=============\n\nAsynchronous HTML email sending with Markdown formating.\n\nWe are using:\n\n * [nodemailer](https://github.com/andris9/Nodemailer#nodemailer) for actual email sending\n * [marked](https://github.com/chjj/marked) for Markdown to HTML conversion\n * [lodash](https://lodash.com)\n\n### Example Usage\n\nSends HTML formated email with markdown text alternative.\n\n```javascript\nimport NrMailer from \"@norjs/mailer\";\n\nasync function example () {\n\n    const smtp_config = {\n        \"host\": \"smtp.example.com\",\n        \"port\": 465,\n        \"secureConnection\": true,\n        \"auth\": {\n            \"user\": \"app\",\n            \"pass\": \"12345678\"\n        }\n    };\n\n    const mailer = NrMailer.createMailer(smtp_config);\n\n    const body = 'The subject of the message\\n'+\n        '--------------------------\\n'+\n        '\\n'+\n        'This is a *sample* email made with Markdown.\\n'+\n        '\\n'+\n        '| Tables | Are | Cool |\\n'+\n        '| ------ | --- | ---- |\\n'+\n        '| col 3 is      | right-aligned | $1600 |\\n'+\n        '| col 2 is      | centered      |   $12 |\\n'+\n        '| zebra stripes | are neat      |    $1 |\\n';\n\n    await mailer.sendMail({\n        from:'app@example.com', \n        to:'jhh@example.com',\n        subject:'Example message',  // This is optional, if not specified, will be \"The subject of the message\" from the markdown content.\n        body: body\n    });\n\n    await mailer.closeMailer();\n\n    console.log('Email sent successfully.');\n\n}\n```\n\nCommercial Support\n------------------\n\nYou can buy commercial support from [Sendanor](https://norjs.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorjs%2Fmailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorjs%2Fmailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorjs%2Fmailer/lists"}