yurtric
04/16/2024, 6:23 PMsendEmail() from my bot. I added Email as a feature in my project settings but still get this error when I try to send an email:
{
"errorType": "Error",
"errorMessage": "{\"msg\":\"Internal Server Error\"}",
"trace": [
"Error: {\"msg\":\"Internal Server Error\"}",
" at Tt.request (/opt/nodejs/node_modules/@medplum/core/dist/cjs/index.cjs:42:8692)",
" at process.processTicksAndRejections (node:internal/process/task_queues:95:5)",
" at async Object.handler (/var/task/user.js:8:5)",
" at async exports.handler (/var/task/index.js:24:18)"
]
}
My code matches the example in the docs:
await medplum.sendEmail({
to: 'eric@example.com',
subject: `Hello ${firstName} ${lastName}!`,
text: `Hello ${firstName} ${lastName}!`,
});rahul1
04/17/2024, 3:39 AMyurtric
04/17/2024, 3:54 AM