Closed rostopira closed 5 years ago
I have a script, that put's email to inbox from http request It must accept all characters, but I'm getting question marks instead of unicode chars
let connection = await imap.connect(config); let msg = `Content-Type: text/plain; charset=utf-8 From: ${from} To: [REDACTED] Subject: Support ${message} --------------------------------------- UserID: ${uid}`; console.log(msg); await connection.append(utf8.encode(msg), {mailbox: 'INBOX'}); connection.end();
This code actually working, I was calling script in wrong environment Sorry
I have a script, that put's email to inbox from http request It must accept all characters, but I'm getting question marks instead of unicode chars