How do emails with + work in them, for example, " support+id160211@somedomain.com "

How do these dynamic looking emails work? What is the role of this + in email addresses.

It seems that this is not a real mailbox that receives these letters.

My thinking is that they will go to " support@somedomain.com " when I read it somewhere. but what's the point then. Basically, I see this when you open a support ticket or stream, and you can directly respond to the email you receive, and the email response is added to the stream / ticket.

But I still don't understand how this works behind the scenes.

I am trying to implement something similar in my application where the user can reply to an email (I'm not sure what I should put for the reply address when sending the original mail) that we sent, and then I want to catch the answer or read it as- then in my script so that I can save it as a comment on the stream.

I use sendmail to send emails, and the address is currently set to " support@somedomain.com " .. somedomain.com is purchased from bluehost and the mx entries correspond to the settings provided by google applications.

and I have no idea what the next step is for me.

+4
source share
1 answer

+ , , . ( ).

user@gmail.com user+stackoverflow@gmail.com , user@gmail.com, , . (, ), , .

( , ) MTA , RFC 5322 RFC 5233.

RFC 5322 , , " " ( @):

! # $ % & ' * + - / = ?  ^ _ ` . { | } ~

gMail , , .


, email-to-PHP. , :

2, .

( ), reply-to, ( support+12345@domain.com support@domain.com, , 12345, ), .

abc123@subdomain.domain.com abc123 , ( ), , *@subdomain.domain.com, -, , , PHP Email Piping script.

, , .

+3

All Articles