mail system, how to get the current email address
I now want to implement a subscription and unsubscribe function, then it must be in other people's mail to know the recipient's email address is how much?
But how does this get to get it?
Share to:
------Solution--------------------
Everyone should have a corresponding email address, you based on the person to find the email address is not OK?
------Solution--------------------
Then it must be in other people's mail to know the recipient's email address is how much?
What does that say? The user subscribes to the natural input mail, or the current login user's corresponding mailbox, the database of course has been saved,
I don't know what you're talking about.
------Solution--------------------
I understand what you mean.
First of all, generally if the subscription or unsubscribe, are in the mail to the link, and then direct to a page, such as you receive Amazon AD mail, the message body at the bottom of the general will have a "unsubscribe" link, click the link browser will open a new page, Where you choose to unsubscribe and so on, do not understand why you have to reply to the email to unsubscribe?
If you must reply to the system mail, the PHP mail function generally has these parameters:
Mail ($to, $subject, $message, $headers)
To is the recipient address, $subject is the subject of the message, $message is the message body, and $headers, you can set the sender's mailbox inside, that is what you call "someone else's message inside the recipient's email address"
For example, I write this:
$headers = "From: [email protected]"
Mail ($to, $subject, $message, $headers)
Then your recipient will receive an e-mail message with the sender "[email protected]"
If she replies to this email, "[email protected]" will receive
Don't know if you want to ask?