# E-Mail Security with Javascript

**URL:** <https://forums.realmacsoftware.com/t/e-mail-security-with-javascript/46823>\
**Category:** RapidWeaver Elements\
**Created:** [March 21, 2025, 9:03pm UTC](https://forums.realmacsoftware.com/t/e-mail-security-with-javascript/46823 "2025-03-21T21:03:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rud](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rud/32/24853_2.png) [@rud](https://forums.realmacsoftware.com/u/rud)\
**Post date:** [March 21, 2025, 9:03pm UTC](https://forums.realmacsoftware.com/t/e-mail-security-with-javascript/46823/1 "2025-03-21T21:03:14Z")

</div>

I want to use JavaScript to generate e-mail addresses dynamically so that they are not in plain text in the HTML code and use the button from elements, is there a way to do this?

---

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [March 21, 2025, 9:49pm UTC](https://forums.realmacsoftware.com/t/e-mail-security-with-javascript/46823/2 "2025-03-21T21:49:10Z")

</div>

There are a bunch of techniques to make it harder for bots to harvest the email addresses. But no client side technique is fail safe. Advanced bots can get the addresses if they are client side, no matter what you do. Basically if you’re thinking of displaying human readable email address, or mailto from a button, it will be harvested no matter what. Server side sending is the only safe way.

---

<div class="post-metadata">

**Author:** ![rud](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rud/32/24853_2.png) [@rud](https://forums.realmacsoftware.com/u/rud)\
**Post date:** [March 22, 2025, 10:12am UTC](https://forums.realmacsoftware.com/t/e-mail-security-with-javascript/46823/3 "2025-03-22T10:12:31Z")

</div>

thanks for the explanations, yes that’s exactly how i see it, just wanted to know if it’s easy to connect a js in elements via a button and how that works.

---

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [March 22, 2025, 10:37am UTC](https://forums.realmacsoftware.com/t/e-mail-security-with-javascript/46823/4 "2025-03-22T10:37:04Z")

</div>

It’s relative I guess. Easy, when you know how. You need to start here :

> **[Introduction | RapidWeaver Elements Docs](https://docs.realmacsoftware.com/elements-docs/elements-language/api-introduction)**
>
> A brief introduction to the Elements templating language

If you have any specific questions, more than happy to help.

---

<div class="post-metadata">

**Author:** ![rud](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rud/32/24853_2.png) [@rud](https://forums.realmacsoftware.com/u/rud)\
**Post date:** [March 23, 2025, 12:14pm UTC](https://forums.realmacsoftware.com/t/e-mail-security-with-javascript/46823/5 "2025-03-23T12:14:53Z")

</div>

yes is the reason why i use elements, but still after 1 week hard to understand and find everything right away, but i’ll keep at it, thanks 👌
