Replies: 1 comment 1 reply
-
You should be able to resolve this by turning off email notification in your profile page:
This is a good point, but perhaps we can make sure the notification goes through (this will still show in the app), but not the email sending portion. More about this below. I believe this delves more into something that was brought up before on what should happen during this "email notification enabled but the instance does not have email configured" scenario. Hence I moved this to discussion while we explore the potential solutions here. Technically the same error would happen when mentioning a user in an item comments, but the error is catched so it does not crash the instance: |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to export a collection and save it as .CSV in my library but it shutdown the application because I have no smtp/send mail configured on my environment. (Is it mandatory?)
I believe it happens because the application try to send a notification when the export is done. Would be possible set up the notification to be conditional it sendmail/smtp is configured or not?
To Reproduce
Choose export to Library instead of Download File
Errors Shown
`17:07:19 ✨ request completed POST 204 /utils/export/employees 30ms
17:07:20 🚨 Couldn't export employees: spawn /usr/sbin/sendmail ENOENT
Error: spawn /usr/sbin/sendmail ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
node:internal/errors:464
ErrorCaptureStackTrace(err);
^
Error: spawn /usr/sbin/sendmail ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn /usr/sbin/sendmail',
path: '/usr/sbin/sendmail',
spawnargs: [ '-i', '-f', 'no-reply@directus.io', 'email@domain.com ]
}
The terminal process "C:\Windows\System32\cmd.exe /d /c npm run start" terminated with exit code: 1.`
More info
What version of Directus are you using?
9.9.1
What version of Node.js are you using?
16.14.2
What database are you using?
MS SQL
What browser are you using?
Chrome
How are you deploying Directus?
locally - Windows 11
Beta Was this translation helpful? Give feedback.
All reactions