WordPress.org

Forums

Anonymous Email like Craigslist (4 posts)

  1. xyannix
    Member
    Posted 3 years ago #

    I have a site where registered users submit "listings" that become posts.

    I would like visitors to the site to have the ability to email / message the user without showing the users email address.

    Does anyone know of a plugin that does this or another way to make this happen.

    Thank you!

  2. David Gard
    Member
    Posted 3 years ago #

    Use the PHP mail function -

    $to = 'emiladdress@whatever.com';
    $subject = 'Your subject';
    $message = 'Your message';
    $hearers = 'FROM: spoof-address@yourdomain.com';
    mail($to, $subject, $message, $headers);
  3. xyannix
    Member
    Posted 3 years ago #

    Sorry I wasn't clear originally...

    I want the registered user who created the post to receive the email but I don't want the visitor sending the email to see the registered users email address.

  4. David Gard
    Member
    Posted 3 years ago #

    So if you have that in your code, the sender will not see any of those details. The email will be generated and sent on page load (or whenever you call that function).

Topic Closed

This topic has been closed to new replies.

About this Topic