Skip to content

E-Mail rendered blank / hidden when using iterator in template #2535

@ole-besendahl

Description

@ole-besendahl

Describe the Bug

I’m having issues when using an iterator like mapping over an array of products in the email template. when using iterator the emails get rendert blank, or the content is rendered as “hidden” in gmail.

uploaded a shareable version of the template to this repo: https://github.com/ole-besendahl/store-notification-bug

it works in the react-email local server, but not when send from production using resend.

Which package is affected (leave empty if unsure)

react-email

Link to the code that reproduces this issue

https://github.com/ole-besendahl/store-notification-bug

To Reproduce

  1. Create Next.js app
  2. Send email using resend from an api route (in our case we hook triggered)

Image
Image

Expected Behavior

Should send email like usual and show content

What's your node version? (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions