# Email Template - MD5

**URL:** <https://community.hubspot.com/t/email-template-md5/93338>\
**Category:** APIs & Integrations\
**Tags:** email, contacts\
**Created:** [November 6, 2023, 9:15am UTC](https://community.hubspot.com/t/email-template-md5/93338 "2023-11-06T09:15:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AR\_SA](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@AR\_SA](https://community.hubspot.com/u/AR_SA)\
**Post date:** [November 6, 2023, 9:15am UTC](https://community.hubspot.com/t/email-template-md5/93338/1 "2023-11-06T09:15:11Z")

</div>

As part of our integration each contact recieves a “login-salt” property for auto-login links use.

We created a login-link module that utlizes that property by concatenating its value with current timestamp and hashing it all with MD5 (all written in said module) - let’s call the MD5 hashing result the login-token.

The issue we have is that the MD5 method “triggers” before the contact’s properties are set in the email which results in a very wrong login-token.

following is an example of what we are doing:

`{% set token = (unixtimestamp(local_dt)~contact.login_salt)|md5 %}`

My question is - is there any way for getting the MD5 method to run only AFTER the contact.login\_salt is filled with the proper value?

Is there a better way of implementing this for use in emails?

Thank you!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 7, 2023, 5:35pm UTC](https://community.hubspot.com/t/email-template-md5/93338/2 "2023-11-07T17:35:18Z")

</div>

Hi, [@AR\_SA](https://community.hubspot.com/t5/user/viewprofilepage/user-id/659039) 👋 Thank you for the interesting question. Adding a delay in the manner you need for your project doesn’t appear to be possible.

Hey, @Anton @MBERARD @Stephanie-OG, have you ever pondered a project like what [@AR\_SA](https://community.hubspot.com/t5/user/viewprofilepage/user-id/659039)? To add a delay this way in the context of an email?

Thank you for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![MBERARD](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mberard/32/61390_2.png) [@MBERARD](https://community.hubspot.com/u/MBERARD)\
**Post date:** [November 10, 2023, 9:56am UTC](https://community.hubspot.com/t/email-template-md5/93338/3 "2023-11-10T09:56:49Z")

</div>

Hi [@AR\_SA](https://community.hubspot.com/t5/user/viewprofilepage/user-id/659039) ,

I would try something like this:

`{% set token = (unixtimestamp(local_dt)~(contact.login_salt|render))|md5 %}`

Hope it works.

Bests,

Matthieu

---

<div class="post-metadata">

**Author:** ![AR\_SA](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@AR\_SA](https://community.hubspot.com/u/AR_SA)\
**Post date:** [November 12, 2023, 12:08pm UTC](https://community.hubspot.com/t/email-template-md5/93338/4 "2023-11-12T12:08:25Z")

</div>

Hi!

Thanks for the reply.

However, this does not help 😔

Looks like the value is still asseset prematurely..
