# Sending password reset email with Sendgrid?

**URL:** <https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933>\
**Category:** Need help\
**Created:** [May 7, 2025, 1:59pm UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933 "2025-05-07T13:59:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![boilerplatetechnologi](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@boilerplatetechnologi](https://forum.bubble.io/u/boilerplatetechnologi)\
**Post date:** [May 7, 2025, 2:00pm UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/1 "2025-05-07T14:00:00Z")

</div>

Hello,

I just started using Sendgrid rather than letting Bubble send my emails. However, I’ve been trying to set up the “send reset password email” flow, but I can’t get it to work.

In the frontend, the reset token does not get passed through the email. Then when i try to pass it as a parameter, and run it as a backend workflow, it still doesn’t pass through.

How can I get the password reset token into the body text of the emails I’m sending?

Thanks a ton in advance!!

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [May 7, 2025, 3:20pm UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/2 "2025-05-07T15:20:33Z")

</div>

Hey @boilerplatetechnologi 👋

Have you watched this video yet? [Password Reset Implementation with Postmark - #2 by maartenmg](https://forum.bubble.io/t/password-reset-implementation-with-postmark/358873/2)

It should help you out. 😊

---

<div class="post-metadata">

**Author:** ![laurabairdd](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/laurabairdd/32/239243_2.png) [@laurabairdd](https://forum.bubble.io/u/laurabairdd)\
**Post date:** [May 7, 2025, 4:13pm UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/3 "2025-05-07T16:13:25Z")

</div>

When using SendGrid manually, you need to generate the reset token yourself with the “Password reset” action, then include it in the email body like:  
`https://yourapp.com/reset-password?token=ThisUser's reset token`.

Make sure the token is created _before_ the email is sent, and passed properly from the backend if you’re triggering it from the frontend.

---

<div class="post-metadata">

**Author:** ![lucaspiccoliw](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucaspiccoliw/32/247076_2.png) [@lucaspiccoliw](https://forum.bubble.io/u/lucaspiccoliw)\
**Post date:** [May 7, 2025, 4:40pm UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/4 "2025-05-07T16:40:52Z")

</div>

Exactly. Also, there’s a checkbox to generate the token without sending the email.

---

<div class="post-metadata">

**Author:** ![boilerplatetechnologi](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@boilerplatetechnologi](https://forum.bubble.io/u/boilerplatetechnologi)\
**Post date:** [May 8, 2025, 3:28am UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/5 "2025-05-08T03:28:48Z")

</div>

Yes I am doing this, but I mean the token isn’t being passed through. I’m adding 2 parameters to my backend workflows, (email & token). The email is being passed through to the backend, but the token is not. It’s just passing through an empty value for the token. Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![boilerplatetechnologi](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@boilerplatetechnologi](https://forum.bubble.io/u/boilerplatetechnologi)\
**Post date:** [May 8, 2025, 3:30am UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/6 "2025-05-08T03:30:19Z")

</div>

How exactly can I make sure the token is being passed through properly? I’m passing through both the email and the token. The email is being passed through properly, but the token is not being passed through at all. Perhaps it’s a security issue for the token? Am I doing it wrong??

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [May 8, 2025, 5:52am UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/7 "2025-05-08T05:52:09Z")

</div>

I experienced this before and I identified it as a timing issue. That was mine.

What you should do first is to check your logs that the token is received by the action. What you can also do is check that the token is generated by creating a debug WF/action that passes the token to a state.

Best to share screenshots of your workflow.

---

<div class="post-metadata">

**Author:** ![lucaspiccoliw](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucaspiccoliw/32/247076_2.png) [@lucaspiccoliw](https://forum.bubble.io/u/lucaspiccoliw)\
**Post date:** [May 8, 2025, 1:53pm UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/8 "2025-05-08T13:53:19Z")

</div>

what I would do

1. I’d probably try to save the token into a custom state and show it on the frontend - as a test - before pushing it to the backend workflow, just to check if it’s being correctly generated. Go to logs too, check step by step how things are rolling there.
2. Check for empty data sources within your elements - `Parent's group thing` is often the workflow killer.
3. I’d double-check this backend workflow.
4. I’d check if this SendGrid integration is done right.

---

<div class="post-metadata">

**Author:** ![boilerplatetechnologi](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@boilerplatetechnologi](https://forum.bubble.io/u/boilerplatetechnologi)\
**Post date:** [May 8, 2025, 2:20pm UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/9 "2025-05-08T14:20:26Z")

</div>

thanks to everyone for your help!! I ended up figuring it out, it was a timing issue like @ihsanzainal84 said. To solve the issue, i made sure to put the action that creates the token as a backend workflow action instead of in the frontend. : )

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 16, 2025, 2:00pm UTC](https://forum.bubble.io/t/sending-password-reset-email-with-sendgrid/368933/10 "2025-07-16T14:00:58Z")

</div>

Closed on July 16, 2025, 2:00pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
