{"id":21152091,"url":"https://github.com/mailjet/mailjet-sendemail","last_synced_at":"2025-07-09T09:32:26.212Z","repository":{"id":15316221,"uuid":"18046244","full_name":"mailjet/Mailjet-sendemail","owner":"mailjet","description":"[API v3] Node.js wrapper to send emails using Mailjet API /!\\ [DEPRECATED - SEE README] /!\\ ","archived":false,"fork":false,"pushed_at":"2015-09-18T14:57:09.000Z","size":187,"stargazers_count":11,"open_issues_count":2,"forks_count":6,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-11-11T20:30:33.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dev.mailjet.com","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/mailjet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-23T23:22:57.000Z","updated_at":"2019-08-13T15:38:17.000Z","dependencies_parsed_at":"2022-08-25T20:21:22.076Z","dependency_job_id":null,"html_url":"https://github.com/mailjet/Mailjet-sendemail","commit_stats":null,"previous_names":["charlescollas/mailjet-sendemail"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailjet%2FMailjet-sendemail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailjet%2FMailjet-sendemail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailjet%2FMailjet-sendemail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailjet%2FMailjet-sendemail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mailjet","download_url":"https://codeload.github.com/mailjet/Mailjet-sendemail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225532789,"owners_count":17484134,"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-20T10:24:22.230Z","updated_at":"2024-11-20T10:24:23.058Z","avatar_url":"https://github.com/mailjet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Warning:\n## This wrapper is deprecated\n### use: https://github.com/mailjet/mailjet-apiv3-nodejs instead\n\n# mailjet-sendemail\nThis library permits to send emails using Mailjet's API in Node.js. It's MIT licensed.\n\n## Installation\n```bash\nnpm install mailjet-sendemail\n```\n\n## Initialization\n\nAccess to the API is done through a Mailjet object. It's instantiated like so:\n\n```javascript\nvar Mailjet = require('mailjet-sendemail');\nvar mailjet = new Mailjet('apiKey', 'secretKey');\n```\n\n## Sending Email\n\n### sendContent\n\nSends an email.\n\n```javascript\nmailjet.sendContent(from, to, subject, type, content);\n```\n\n* from - Sender of the message; this should be a full email address (e.g. ```example@example.com```).\n* to - A string (example@example.com) or array of strings (['a@example.com', 'b@example.com']) of recipients. For cc and bcc support, append cc: or bcc: to the recipient email address (cc:example@example.com).\n* subject - Message subject\n* type - The type of the email, 'text' or 'html'\n* content - Message content, depending on the type\n\n### Examples\n\nWith plain text :\n\n```javascript\nmailjet.sendContent('sender@example.com',\n         ['recipient1@example.com', 'bcc:recipient2@example.com'],\n         'This is a test !',\n         'text',\n         'Well, this is working !')\n```\n\nWith HTML :\n\n```javascript\nmailjet.sendContent('sender@example.com',\n         ['recipient1@example.com', 'bcc:recipient2@example.com'],\n         'This is a test !',\n         'html',\n         '\u003cb\u003eWell, this is working !\u003c/b\u003e')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailjet%2Fmailjet-sendemail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmailjet%2Fmailjet-sendemail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailjet%2Fmailjet-sendemail/lists"}