Skip to content

No plain-text part is generated for outgoing mail #115

Open

Description

@JuansesDev

What happens

The MIME message is HTML-only: the headers are Content-Type: text/html; charset=UTF-8 and there is no multipart/alternative. text_body is stored and returned by the templates API but is never read on any send path; only the dashboard computes it, client-side.

Where

  • backend/internal/service/email.go:1154-1161 — header construction, single part.
  • TextBody does not appear anywhere in email.go.
  • frontend/src/views/project/TemplatesSection.vue:214 — client-side generation.

Impact

Recipients and providers see HTML only, and any deliverability benefit expected from a text part does not exist. The docs promise both parts.

Proposed fix

Build a multipart/alternative message from text_body in the send path, or generate the text part server-side at template save time.

Acceptance

  • The message on the wire contains both text/plain and text/html parts.

Activity

  1. added
    bug
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions