Closed codesticle closed 4 years ago
Thanks, I will fix it.
Any new about this ?
Hi @o4oren any news on this?
Bcc addresses only appear in the transport envelope (that is RCPT TO) and not in the message header. That’s the whole point of Bcc, otherwise other receipients would see the Bcc’s as well.
Understood!, do you know any way to recognize what addresses belong to a Bcc in the "rcpt to" array?
Understood!, do you know any way to recognize what addresses belong to a Bcc in the "rcpt to" array?
Have you found the way ?
We are using this from the documentation to stream the message. The message has TO, CC, and BCC addresses.
const server = new SMTPServer({ onData(stream, session, callback) { stream.pipe(process.stdout); // print message to console stream.on("end", callback); } });
When examining the output, the TO and CC do appear, but the BCC addresses are missing:
From: "Test test@test.com To: recipient@test.com Cc: robert@test.com, john@test.com Date: 31 Jan 2019 12:04:27 -0600 Subject: Test Email Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable
I'll also add that the logs do show that the addresses are being recognized when the email is received by the smtp-server:
[2019-01-31 17:49:11] DEBUG [#rotrw123] C: MAIL FROM:test@test.com [2019-01-31 17:49:11] DEBUG [#rotrw123] S: 250 Accepted [2019-01-31 17:49:11] DEBUG [#rotrw123] C: RCPT TO:recipient@test.com [2019-01-31 17:49:11] DEBUG [#rotrw123] S: 250 Accepted [2019-01-31 17:49:11] DEBUG [#rotrw123] C: RCPT TO:thebccperson@test.com [2019-01-31 17:49:11] DEBUG [#rotrw123] S: 250 Accepted [2019-01-31 17:49:11] DEBUG [#rotrw123] C: RCPT TO:anotherbccperson@test.com [2019-01-31 17:49:11] DEBUG [#rotrw123] S: 250 Accepted [2019-01-31 17:49:11] DEBUG [#rotrw123] C: RCPT TO:robert@test.com [2019-01-31 17:49:11] DEBUG [#rotrw123] S: 250 Accepted [2019-01-31 17:49:11] DEBUG [#rotrw123] C: RCPT TO:john@test.com [2019-01-31 17:49:11] DEBUG [#rotrw123] S: 250 Accepted