WordPress.org

Support

Support » How-To and Troubleshooting » Anonymous Email like Craigslist

Anonymous Email like Craigslist

  • xyannix
    Member

    @xyannix

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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);
    xyannix
    Member

    @xyannix

    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.

    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).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Anonymous Email like Craigslist’ is closed to new replies.