Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shadrix's avatar
Level 12

Hiding the public email through a middle email. How would you call it?

I'm looking for a way that hides the user's email through a middle email. Airbnb uses it for communication purposes after booking, for example. [email protected]. But it's obviously not the real mail.

Is there a package out there that does that? I don't know how you would call such a thing.

0 likes
1 reply
Cronix's avatar

This isn't very difficult to do if you run your own email server, which I presume they are. Then you can just pipe all of the emails to a controller. If you're not, you'd need a service that can also post back the emails they receive to a webhook on your system. Then you just match the sender or recipient (epsasdf9rm0avx38zvvh in your example) to a user on your system to get the real email and resend the email. It's obviously a little more complex than that, but that's the gist. What are you using for email right now? Your own server, or a service like mailgun?

1 like

Please or to participate in this conversation.