Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
Is it possible to use absolute paths to access files from a WSL2 (Ubuntu) instance?
I can see that the absolute paths are based on starting with "/"
so i tried the following solution
return await sendMail({
to: user.email,
template: '/\\wsl$/Ubuntu/home/.../.../.../emails/users/welcome',
})
but it dropped the following error
{
"Error": "ENOENT: no such file or directory, stat '/\wsl$/Ubuntu/home/.../.../.../emails/users/welcome/text.pug'",
"errno": "-2",
"code": "ENOENT",
"syscall": "stat",
"path":
"/\\wsl$/Ubuntu/home/.../.../.../emails/users/welcome/text.pug"
}
Is it possible to use absolute paths to access files from a WSL2 (Ubuntu) instance?
I can see that the absolute paths are based on starting with "/"
so i tried the following solution
but it dropped the following error