mail system, how to get the current email address

Source: Internet
Author: User
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:system_admin@hotmail.com"
Mail ($to, $subject, $message, $headers)
Then your recipient will receive an e-mail message, and the sender that appears in the message is "system_admin@hotmail.com"
If she replies to this email, "system_admin@hotmail.com" will receive

Don't know if you want to ask?
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.