Reply to Inbound Emails
When receiving an email through webhooks, you can easily reply to the sender while preserving conversation threading in the recipient’s mail client.Preserving Threading
To ensure the reply appears in the same email thread:- Extract the
Message-IDfrom the incoming email’s headers. - When calling
mailofly.emails.send(), passheaders:In-Reply-To: Set to the incomingMessage-ID.References: Set to the incomingReferencesplus the incomingMessage-ID.Subject: Prefix withRe:(if not already present).