Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(cdp): pass reply-to to the local maildev transport (#121872)

Harley Alexander8fed973328bd
diff --git a/nodejs/src/cdp/services/messaging/email.service.ts b/nodejs/src/cdp/services/messaging/email.service.ts
index bfbb4a1d50a9..396672f3e75e 100644
--- a/nodejs/src/cdp/services/messaging/email.service.ts
+++ b/nodejs/src/cdp/services/messaging/email.service.ts
@@ -1059,6 +1059,7 @@ export class EmailService {
const ccAddresses = parseAddressList(params.cc)
const bccAddresses = parseAddressList(params.bcc)
+ const replyToAddresses = parseAddressList(params.replyTo)
if (ccAddresses) {
mailOptions.cc = ccAddresses
@@ -1066,6 +1067,9 @@ export class EmailService {
if (bccAddresses) {
mailOptions.bcc = bccAddresses
}
+ if (replyToAddresses) {
+ mailOptions.replyTo = replyToAddresses
+ }
const response = await mailDevTransport!.sendMail(mailOptions)