Closed zefir-git closed 1 year ago
SMTP client can send multiple emails and the session is reset after each data completion
SMTP client can send multiple emails and the session is reset after each data completion
what is the best practice to obtain mail from and rcpt to data when data
is submitted?
@andris9 I have still not figured this out.
Are you certain that when receiving data
the envelope should already be cleared? How am I supposed to access the envelope when I receive the data?
Any pointers would be much appreciated.
I set up my
smtp-server
toconsole.log
and allow all connect, mail from, rcpt to, auth, dataTLS
SMTP
auth login
I havecallback(null, {user: "test"})
helo test
mail from: <test@example.com>
session.envelope
isrcpt to: <johndoe@example.com>
session.envelope
isdata
session.envelope
isWhat is the reason for the envelope object to change after receiving data? Should I store its contents before receiving data? What if data is never sent?