#Not forwarding or replying to email. (Email workers)

5 messages · Page 1 of 1 (latest)

glad hollow
#

a few things I see:

const body = await message.body;
const subject = await message.subject;

Neither of these are awaitable. body should be raw, which is a readablestream, and subject doesn't exist on emailmessage. Awaiting a non-awaitable object just does nothing though, and you're not using the body eitherway

await message.forward("inbox");

You need to specify a valid email address which is verified and one of the destination addresses you have added

message.reply(replyMessage);

This needs to be awaited

#

yea that's not how you create an email message obj, look at the docs example, there's no subject in the constructor