{"_id":"@bytewizardry/medusa-plugin-ses","_rev":"5-c111ef1d84993089e789bc4fdbe7866d","name":"@bytewizardry/medusa-plugin-ses","dist-tags":{"latest":"3.0.1-canary.13"},"versions":{"3.0.1-canary.8":{"name":"@bytewizardry/medusa-plugin-ses","version":"3.0.1-canary.8","description":"AWS SES transactional emails using local handlebars templates","main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/pevey/medusa-plugin-ses.git"},"homepage:":"https://pevey.com/medusa-plugin-ses","author":{"name":"Lacey Pevey"},"license":"GPL-3.0-or-later","dependencies":{"@aws-sdk/client-ses":"^3.425.0","@medusajs/admin":"^7.1.11","@medusajs/medusa":"^1.20.2","@uiw/react-codemirror":"^4.21.19","handlebars":"^4.7.8","medusa-core-utils":"^1.2.1","medusa-interfaces":"^1.3.8","mjml":"^4.14.1","nodemailer":"^6.9.5","zod":"^3.22.4"},"devDependencies":{"@medusajs/admin-ui":"^2.1.4","awilix":"^8.0.1","cors":"^2.8.5","cross-env":"^7.0.3","express":"^4.17.2","shx":"^0.3.4","typescript":"^5.2.2"},"scripts":{"prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests src","build":"shx rm -rf ./dist && tsc && medusa-admin bundle","watch":"tsc --watch"},"keywords":["medusa-plugin","medusa-plugin-notification","email","react email","handlebars email","transactional email","ses","simple email service","aws ses","aws"],"_id":"@bytewizardry/medusa-plugin-ses@3.0.1-canary.8","gitHead":"25a3befeefbe71b5517ee8b9b073886b4ab120d6","bugs":{"url":"https://github.com/pevey/medusa-plugin-ses/issues"},"homepage":"https://github.com/pevey/medusa-plugin-ses#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-TpMoANIxaABQGvBxOkJVZ/b2GlcquyJVQQ3aytFeJ2xmYd/Va+xitncctvNGiwX0y4SBtK27fWRS7YeDRLF4/g==","shasum":"1b97b0ad7a241bec665811df65639643742616af","tarball":"https://registry.npmjs.org/@bytewizardry/medusa-plugin-ses/-/medusa-plugin-ses-3.0.1-canary.8.tgz","fileCount":32,"unpackedSize":120034,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDATcgWs60G74BQkqPbpA/8A9R0WTwjOI6tTfMlm3tPmAiEAtQIB3jCY9lU7o2LB45MJKXEw5xZEcy2yYxmi9iYJ2FQ="}]},"_npmUser":{"name":"raiyansarker","email":"developerraiyan@gmail.com"},"directories":{},"maintainers":[{"name":"raiyansarker","email":"developerraiyan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-plugin-ses_3.0.1-canary.8_1707787627387_0.25480847658080075"},"_hasShrinkwrap":false},"3.0.1-canary.9":{"name":"@bytewizardry/medusa-plugin-ses","version":"3.0.1-canary.9","description":"AWS SES transactional emails using local handlebars templates","main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/pevey/medusa-plugin-ses.git"},"homepage:":"https://pevey.com/medusa-plugin-ses","author":{"name":"Lacey Pevey"},"license":"GPL-3.0-or-later","dependencies":{"@aws-sdk/client-ses":"^3.425.0","@medusajs/admin":"^7.1.11","@medusajs/medusa":"^1.20.2","@uiw/react-codemirror":"^4.21.19","handlebars":"^4.7.8","medusa-core-utils":"^1.2.1","medusa-interfaces":"^1.3.8","mjml":"^4.14.1","nodemailer":"^6.9.5","zod":"^3.22.4"},"devDependencies":{"@medusajs/admin-ui":"^2.1.4","awilix":"^8.0.1","cors":"^2.8.5","cross-env":"^7.0.3","express":"^4.17.2","shx":"^0.3.4","typescript":"^5.2.2"},"scripts":{"prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests src","build":"shx rm -rf ./dist && tsc && medusa-admin bundle","watch":"tsc --watch"},"keywords":["medusa-plugin","medusa-plugin-notification","email","react email","handlebars email","transactional email","ses","simple email service","aws ses","aws"],"_id":"@bytewizardry/medusa-plugin-ses@3.0.1-canary.9","gitHead":"25a3befeefbe71b5517ee8b9b073886b4ab120d6","bugs":{"url":"https://github.com/pevey/medusa-plugin-ses/issues"},"homepage":"https://github.com/pevey/medusa-plugin-ses#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-hKyxDDL5EDhGvhcuSTkVusCgnzS/JBHcktucklfKdKEetBIGptIpuMJjO8d2Gn3KY21z1e65tGLknpDsMjNX4w==","shasum":"283f23d23ceff28c2242ae25d023edf2d877c677","tarball":"https://registry.npmjs.org/@bytewizardry/medusa-plugin-ses/-/medusa-plugin-ses-3.0.1-canary.9.tgz","fileCount":32,"unpackedSize":120058,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDZamAOGhtYMlyL/ZRa3Jyu07Q9g1PHyP/oOy8oNpVJgIhAM/iuwIpO9tVYn6rF6j/H+zYnecEk9BWIRq5sSzj/FKx"}]},"_npmUser":{"name":"raiyansarker","email":"developerraiyan@gmail.com"},"directories":{},"maintainers":[{"name":"raiyansarker","email":"developerraiyan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-plugin-ses_3.0.1-canary.9_1707787804177_0.929041948725907"},"_hasShrinkwrap":false},"3.0.1-canary.10":{"name":"@bytewizardry/medusa-plugin-ses","version":"3.0.1-canary.10","description":"AWS SES transactional emails using local handlebars templates","main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/pevey/medusa-plugin-ses.git"},"homepage:":"https://pevey.com/medusa-plugin-ses","author":{"name":"Lacey Pevey"},"license":"GPL-3.0-or-later","dependencies":{"@aws-sdk/client-ses":"^3.425.0","@medusajs/admin":"^7.1.11","@medusajs/medusa":"^1.20.2","@uiw/react-codemirror":"^4.21.19","handlebars":"^4.7.8","medusa-core-utils":"^1.2.1","medusa-interfaces":"^1.3.8","mjml":"^4.14.1","nodemailer":"^6.9.5","zod":"^3.22.4"},"devDependencies":{"@medusajs/admin-ui":"^2.1.4","awilix":"^8.0.1","cors":"^2.8.5","cross-env":"^7.0.3","express":"^4.17.2","shx":"^0.3.4","typescript":"^5.2.2"},"scripts":{"prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests src","build":"shx rm -rf ./dist && tsc && medusa-admin bundle","watch":"tsc --watch"},"keywords":["medusa-plugin","medusa-plugin-notification","email","react email","handlebars email","transactional email","ses","simple email service","aws ses","aws"],"_id":"@bytewizardry/medusa-plugin-ses@3.0.1-canary.10","gitHead":"25a3befeefbe71b5517ee8b9b073886b4ab120d6","bugs":{"url":"https://github.com/pevey/medusa-plugin-ses/issues"},"homepage":"https://github.com/pevey/medusa-plugin-ses#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-2bLfPDLpzgWHh0T8bd1k2CF87Sva4cgXF+ec+iYhqyg/jhEjzrJIYrQE1KoBdw57c5aJMdLGLuqco1vs8But1Q==","shasum":"8210b25acc68076e2468adb7b11996186f366040","tarball":"https://registry.npmjs.org/@bytewizardry/medusa-plugin-ses/-/medusa-plugin-ses-3.0.1-canary.10.tgz","fileCount":32,"unpackedSize":119470,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfUNi/T743GmbDSdpnLuF3lVxjXpa8cXYpvD9LDWNuiAiEA5cbx/CGmWzBpThBMpXrVMJRLSVZs9FggKnAqoNprfb4="}]},"_npmUser":{"name":"raiyansarker","email":"developerraiyan@gmail.com"},"directories":{},"maintainers":[{"name":"raiyansarker","email":"developerraiyan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-plugin-ses_3.0.1-canary.10_1707799937337_0.0378101294401918"},"_hasShrinkwrap":false},"3.0.1-canary.11":{"name":"@bytewizardry/medusa-plugin-ses","version":"3.0.1-canary.11","description":"AWS SES transactional emails using local handlebars templates","main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/pevey/medusa-plugin-ses.git"},"homepage:":"https://pevey.com/medusa-plugin-ses","author":{"name":"Lacey Pevey"},"license":"GPL-3.0-or-later","dependencies":{"@aws-sdk/client-ses":"^3.425.0","@medusajs/admin":"^7.1.11","@medusajs/medusa":"^1.20.2","@uiw/react-codemirror":"^4.21.21","handlebars":"^4.7.8","medusa-interfaces":"^1.3.8","mjml":"^4.14.1","nodemailer":"^6.9.5","zod":"^3.22.4"},"devDependencies":{"@medusajs/admin-ui":"^2.1.4","awilix":"^8.0.1","cors":"^2.8.5","cross-env":"^7.0.3","express":"^4.17.2","shx":"^0.3.4","typescript":"^5.2.2"},"scripts":{"prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests src","build":"shx rm -rf ./dist && tsc && medusa-admin bundle","watch":"tsc --watch"},"keywords":["medusa-plugin","medusa-plugin-notification","email","react email","handlebars email","transactional email","ses","simple email service","aws ses","aws"],"_id":"@bytewizardry/medusa-plugin-ses@3.0.1-canary.11","gitHead":"25a3befeefbe71b5517ee8b9b073886b4ab120d6","bugs":{"url":"https://github.com/pevey/medusa-plugin-ses/issues"},"homepage":"https://github.com/pevey/medusa-plugin-ses#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-U60IfojZzbGRgjjhWFM4VygcrmRp/GFkSCwR2ONWE2MiprQRBkSRq5NK+niDxuGghsf1+ImrLC+E2VOhDMwoOA==","shasum":"8b3539ba0f140e97e6043613665cbbe851319e88","tarball":"https://registry.npmjs.org/@bytewizardry/medusa-plugin-ses/-/medusa-plugin-ses-3.0.1-canary.11.tgz","fileCount":32,"unpackedSize":119435,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGuAx6qz5/tG4K4TPEELRW2dwoSoEgfhkgvRmFoRCi+HAiEAlgXmU55ghsON9LErXDXQrcg4uEL6j9yV/HE5qTCaP88="}]},"_npmUser":{"name":"raiyansarker","email":"developerraiyan@gmail.com"},"directories":{},"maintainers":[{"name":"raiyansarker","email":"developerraiyan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-plugin-ses_3.0.1-canary.11_1707800725982_0.4851008735444353"},"_hasShrinkwrap":false},"3.0.1-canary.12":{"name":"@bytewizardry/medusa-plugin-ses","version":"3.0.1-canary.12","description":"AWS SES transactional emails using local handlebars templates","main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/pevey/medusa-plugin-ses.git"},"homepage:":"https://pevey.com/medusa-plugin-ses","author":{"name":"Lacey Pevey"},"license":"GPL-3.0-or-later","dependencies":{"@aws-sdk/client-ses":"^3.425.0","@medusajs/admin":"^7.1.11","@medusajs/medusa":"^1.20.2","@uiw/react-codemirror":"^4.21.21","handlebars":"^4.7.8","medusa-interfaces":"^1.3.8","mjml":"^4.14.1","nodemailer":"^6.9.5","zod":"^3.22.4"},"devDependencies":{"@medusajs/admin-ui":"^2.1.4","awilix":"^8.0.1","cors":"^2.8.5","cross-env":"^7.0.3","express":"^4.17.2","shx":"^0.3.4","typescript":"^5.2.2"},"scripts":{"prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests src","build":"shx rm -rf ./dist && tsc && medusa-admin bundle","watch":"tsc --watch"},"keywords":["medusa-plugin","medusa-plugin-notification","email","react email","handlebars email","transactional email","ses","simple email service","aws ses","aws"],"_id":"@bytewizardry/medusa-plugin-ses@3.0.1-canary.12","gitHead":"25a3befeefbe71b5517ee8b9b073886b4ab120d6","bugs":{"url":"https://github.com/pevey/medusa-plugin-ses/issues"},"homepage":"https://github.com/pevey/medusa-plugin-ses#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-TGBKGSv8IhACzNBVaHlBuxtreSQVSJlWTrun8B72I9LgFXClDkJEygz/hHUOLmVxgFPif9KYOk6ZAUmVBX9jZg==","shasum":"726db8ab54e450bd3193566368a8255204b14258","tarball":"https://registry.npmjs.org/@bytewizardry/medusa-plugin-ses/-/medusa-plugin-ses-3.0.1-canary.12.tgz","fileCount":30,"unpackedSize":121089,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPVZqPFLyK3cq0I5GTcGnER7S036EIiiQ5oeAiOlvzeAiEA9rd4FEScFifDD3R0EVQrwHH0+q2nX/WCo15eaxWjBpo="}]},"_npmUser":{"name":"raiyansarker","email":"developerraiyan@gmail.com"},"directories":{},"maintainers":[{"name":"raiyansarker","email":"developerraiyan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-plugin-ses_3.0.1-canary.12_1707810450298_0.23557645977775032"},"_hasShrinkwrap":false},"3.0.1-canary.13":{"name":"@bytewizardry/medusa-plugin-ses","version":"3.0.1-canary.13","description":"AWS SES transactional emails using local handlebars templates","main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/pevey/medusa-plugin-ses.git"},"homepage:":"https://pevey.com/medusa-plugin-ses","author":{"name":"Lacey Pevey"},"license":"GPL-3.0-or-later","dependencies":{"@aws-sdk/client-ses":"^3.425.0","@uiw/react-codemirror":"^4.21.21","handlebars":"^4.7.8","mjml":"^4.14.1","nodemailer":"^6.9.5","zod":"^3.22.4"},"devDependencies":{"@medusajs/admin":"^7.1.11","@medusajs/admin-ui":"^2.1.4","@medusajs/medusa":"^1.20.2","awilix":"^8.0.1","cors":"^2.8.5","cross-env":"^7.0.3","express":"^4.17.2","medusa-interfaces":"^1.3.8","shx":"^0.3.4","typescript":"^5.2.2"},"scripts":{"prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests src","build":"shx rm -rf ./dist && tsc && medusa-admin bundle","watch":"tsc --watch"},"keywords":["medusa-plugin","medusa-plugin-notification","email","react email","handlebars email","transactional email","ses","simple email service","aws ses","aws"],"_id":"@bytewizardry/medusa-plugin-ses@3.0.1-canary.13","gitHead":"25a3befeefbe71b5517ee8b9b073886b4ab120d6","bugs":{"url":"https://github.com/pevey/medusa-plugin-ses/issues"},"homepage":"https://github.com/pevey/medusa-plugin-ses#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-C01/JvORwfITL4VoLEHycr0mdX6C6xqOzKohdGwYYqcfh5Xc3NKIqmOjixl+1OUAay46yJzX8IwQSRIxie54BA==","shasum":"8e3acc5b97b0a5605da64217093ef38ce38828a0","tarball":"https://registry.npmjs.org/@bytewizardry/medusa-plugin-ses/-/medusa-plugin-ses-3.0.1-canary.13.tgz","fileCount":30,"unpackedSize":121089,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbsKH9uHTW/b7jGReeUL/I2b662RRhEDiHy0EM90K9kAiEA/k/msX57g/9OzwftIC4JKKZO7nEk+KIDrDrXEbxwWlg="}]},"_npmUser":{"name":"raiyansarker","email":"developerraiyan@gmail.com"},"directories":{},"maintainers":[{"name":"raiyansarker","email":"developerraiyan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-plugin-ses_3.0.1-canary.13_1707810789270_0.5473578030547483"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-13T01:27:07.255Z","3.0.1-canary.8":"2024-02-13T01:27:07.608Z","modified":"2024-02-13T07:53:09.686Z","3.0.1-canary.9":"2024-02-13T01:30:04.514Z","3.0.1-canary.10":"2024-02-13T04:52:17.521Z","3.0.1-canary.11":"2024-02-13T05:05:26.134Z","3.0.1-canary.12":"2024-02-13T07:47:30.499Z","3.0.1-canary.13":"2024-02-13T07:53:09.459Z"},"maintainers":[{"name":"raiyansarker","email":"developerraiyan@gmail.com"}],"description":"AWS SES transactional emails using local handlebars templates","homepage":"https://github.com/pevey/medusa-plugin-ses#readme","keywords":["medusa-plugin","medusa-plugin-notification","email","react email","handlebars email","transactional email","ses","simple email service","aws ses","aws"],"repository":{"type":"git","url":"git+https://github.com/pevey/medusa-plugin-ses.git"},"author":{"name":"Lacey Pevey"},"bugs":{"url":"https://github.com/pevey/medusa-plugin-ses/issues"},"license":"GPL-3.0-or-later","readme":"# medusa-plugin-ses\n\nNotifications plugin for Medusa ecommerce server that sends transactional emails via AWS SES (Simple Email Service).\n\n[Documentation](https://pevey.com/medusa-plugin-ses)\n\nIf you are not familiar with Medusa, you can learn more on [the project web site](https://www.medusajs.com/).\n\n> Medusa is a set of commerce modules and tools that allow you to build rich, reliable, and performant commerce applications without reinventing core commerce logic. The modules can be customized and used to build advanced ecommerce stores, marketplaces, or any product that needs foundational commerce primitives. All modules are open-source and freely available on npm.\n\n## Features\n\n- Templates are stored locally.  \n- Templates are based on handlebars, so they are compatible with Sendgrid email templates\n- You can refer to the Medusa template reference to see all data fields that are available for each event: [Template Reference](https://docs.medusajs.com/plugins/notifications/sendgrid#template-reference)\n- An API endpoint that is useful for testing and that can be used with other (non-Medusa) portions of your storefront application is included.  By default, the endpoint does nothing for security reasons.  See configuration options below to enable it.\n\n## Installation\n\nInside your medusa backend root folder, type:\n\n```bash\nyarn add medusa-plugin-ses\n```\n\nReplace \"yarn add\" with the correct command for your package manager if you are using (for example) npm, pnpm, or bun.\n\n## Configuration\n\nEnable in your medusa-config.js file similar to other plugins. \n\n```js\nconst plugins = [\n   //... other plugins\n  {\n    resolve: \"medusa-plugin-ses\",\n    options: {\n      access_key_id: process.env.SES_ACCESS_KEY_ID,\n      secret_access_key: process.env.SES_SECRET_ACCESS_KEY,\n      region: process.env.SES_REGION,\n      from: process.env.SES_FROM,\n      template_path: process.env.SES_TEMPLATE_PATH,\n      partial_path: process.env.SES_PARTIAL_PATH,\n      // optional string containing email address separated by comma\n      order_placed_cc: 'person1@example.com,person2@example.com', \n      enable_endpoint: process.env.SES_ENABLE_ENDPOINT,\n      enable_sim_mode: process.env.SES_ENABLE_SIM_MODE\n    }\n  },\n  //... other plugins\n]\n```\n\nThe credentials and region are pulled from env variables.\n\n```bash\nSES_REGION=\"\"\nSES_ACCESS_KEY_ID=\"\"\nSES_SECRET_ACCESS_KEY=\"\"\nSES_FROM=\"Cool Company <orders@example.com>\"\nSES_TEMPLATE_PATH=\"data/templates\"\nSES_PARTIAL_PATH=\"data/partials\"\nSES_ENABLE_ENDPOINT=\"\"\nSES_ENABLE_SIM_MODE=\"\"\n```\n\n- SES_REGION will be for example \"us-east-1\"\n\n- Obtain the access key id and secret access key by creating an IAM user with SES send permissions.\n\n- The SES_FROM email address must be a verified sender in your AWS account.\n\n- The SES_TEMPLATE_PATH can be absolute (starting with '/', e.g., '/home/pevey/www/medusa/data/templates') or relative (e.g., 'data/templates')\n\n- Partials are optional and supported in plugin versions 2.1.0 or later.  Any partials with the .hbs file extension that are located in the configured partials directory will be registered and available for use in templates.  For more information about Handlebars partials and how to use them in your templates, see the [Handlebars documentation](https://handlebarsjs.com/guide/partials.html). \n\n- See the \"Testing\" section below for important info on enabling the endpoint and enabling simulation mode for the endpoint.\n\nRemember that the from email address must be a verified sender in your AWS console.\nAlso remember that if your AWS account is still in sandbox mode, you can only SEND emails to verified sender email addresses.\n\n## Templates\n\nThe templates used are stored locally.  Create a 'data/templates' folder and include the entire path in the SES_TEMPLATE_PATH variable.\n\n```bash\nmedusa-server  // root directory\n|-data\n      |-templates\n            |-order_placed  // or whatever you name your templates and specify in the config file\n                  |-subject.hbs\n                  |-html.hbs\n                  |-text.hbs\n            |-gift_card_created\n                  |-subject.hbs\n                  |-html.hbs\n                  |-text.hbs\n            |- etc   \n```\n\nWhen emails are sent, each of the three parts will be compiled.\n\n- Subject is required\n- Either html or text is required.\n\n## Dynamic Usage\n\nYou can resolve the service to send emails from your custom services or other resources. For example, on a custom API endpoint, you can add:\n\n```js\nconst sesService = req.scope.resolve(\"sesService\")\n\nconst sendOptions =  {\n   templateId: \"d-123....\",\n   from: \"ACME <acme@mail.com>\",\n   to: \"customer@mail.com\",\n   data: {}\n}\n\nsesService.sendEmail(sendOptions)\n```\n\nMake sure you consider security and enable proper protections on your endpoint if you do this.\n\n## Testing\n\nThis plugin adds an endpoint at http://[server]/ses/send\n\nBy default, the endpoint will refuse to send any emails.\nThis endpoint may be useful for testing purposes in a development environment or for use by related applications.\n\nThere is NO SECURITY on the endpoint by default. Most people will NOT need to enable this endpoint.\nIf you are certain that you want to enable it and that you know what you are doing,\nset the environment variable SES_ENABLE_ENDPOINT to the string you will use as your pass key when sending requests to the endpoint.\n\nTo use the endpoint, POST a json req.body with: pass_key, template_id, from, to, and data to /ses/send.\n\nExample:\n\n```bash\nSES_ENABLE_ENDPOINT=\"42\"\n```\n\n```json\n{\n   \"template_id\":\"customer_password_reset\",\n   \"from\":\"me@me.com\",\n   \"to\": \"you@you.com\",\n   \"data\": {\n      \"customer\": {\n         \"first_name\": \"Test\"\n      }\n   },\n   \"pass_key\": \"42\"\n}\n```\n\nSetting the enable_sim_mode option to true will cause the endpoint to return information about whether the template was successfully compiled and the compiled result, but it will not actually send the email.  This setting only applies to calls to the ses/send endpoint.  It does not affect other calls to the notification service from within Medusa, which will still send emails as per usual.\n","readmeFilename":"README.md"}