Skip to content

discourse/discourse-anonymous-email-contact

Repository files navigation

Anonymous Email Contact

A theme component that shows an Email button — a mailto: link styled like core's "Message" button — to anonymous (logged-out) visitors only. It appears on both the user card popup and the full user profile page for a configurable list of users. Logged-in users see nothing new; they keep core's normal private-message button.

Privacy caveat

The email address you configure is public. It is rendered into the page HTML and into the mailto: link, so it is visible to anyone (and to scrapers). Only use addresses that are meant to be public.

Configuration

Open the component settings and edit the contacts setting. Each entry has:

  • Username — the exact username (matched case-insensitively) the Email button should attach to.
  • Email address — the public address used in the mailto: link.

Add one entry per user who should expose an Email button to logged-out visitors.

Note on hide_user_profiles_from_public

If the site setting hide_user_profiles_from_public is enabled, anonymous visitors cannot see user cards or profile pages at all, so the Email button will not appear for them.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors