0

Would like to create something like Craigslist in terms of its anonymous emails so that Logged-in users can send email from the site. Once they do, their email will be changed to randomtext@domain.com instead of their original email. This is to prevent other users from knowing the real email of the authenticated users.

Other users should still be able to send them email with the randomtext@domain.com as To and that reply would be saved on the Users's profile.

How would you go about implementing this? The module I found that's close, but not sure how it works is Mailhandler with Singlebox . But there's rarely any documentation for it. Do you recommend other solutions?

1

You could use the following components:

  • an email server you control to create temporary email accounts, or a mail relay service.

  • use Relation or a custom user field for a user's anonymous email thru user02193213@yoursite.com. Enforce uniqueness of this field. Relation can do alot of this for you as a developer (create a user <-> anonymous email relation, attach category tags to the Relation Entity itself and use relation_query to build reusable lookup functions.

  • store a mapping of Drupal uid to anonymous emails. In general this is outlined here: https://stackoverflow.com/questions/8179047/email-piping-in-php-like-craigslist-how-do-i-associate-real-emails

  • upon content submission use Rules to lookup anonymous email addresses of content owner to logged in user and send the email. Your email server you control can then forward to real addresses.

Questions regarding email setup are not drupal setup and inappropriate here. I've just outlined an approach for the Drupal side of things.

  • I'm also having problems setting up the email part. How do I create the email server to create temporary emails? Can you send me to another post if possible if you can't answer it here. Thanks. – Frances Naty Go Aug 14 '14 at 19:21
  • sorry i cannot help you with that, I recommend asking on stackoverflow or some other Question and Answer site. – tenken Aug 14 '14 at 19:28
  • Oh ok. Thanks for the Drupal part tips. Appreciate it. – Frances Naty Go Aug 15 '14 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.