[GH-ISSUE #2219] Invite emails fail in 1.14.x – "Email missing required fields" despite valid SMTP config #2103

Closed
opened 2026-04-16 09:05:51 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @Seanluc17 on GitHub (Jan 7, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2219

Describe the Bug

In Pangolin 1.14.1, invitation emails are not sent even though SMTP is correctly
configured and verified to be working.

When inviting a user via the UI, Pangolin reports that the email was sent,
but no email is delivered. The SMTP provider (Resend) does not receive any request.

Pangolin logs show an error indicating missing email fields, although all required
fields are configured.

Log output:
[error]: Email missing required fields {"to":"user@example.com","subject":"You're invited to join MyOrganization"}

Additional notes:

  • SMTP connectivity was verified manually using swaks inside the container.
  • Resend domain is fully verified (SPF, DKIM, MX).
  • Sending test emails via swaks succeeds.
  • No request appears in Resend logs when Pangolin sends invites.

Environment

Pangolin version: 1.14.1 (Docker image: fosrl/pangolin:latest)
Deployment: Docker Compose
Email provider: SMTP (Resend)
Operating system: Linux (Hetzner VPS)

To Reproduce

  1. Configure SMTP in config.yml:

    email:
    enabled: true
    provider: smtp
    from: "Bruchtal noreply@mydomain.com"
    smtp:
    host: smtp.resend.com
    port: 587
    secure: false
    user: resend
    pass:

  2. Start Pangolin 1.14.1

  3. Log in to the UI as admin

  4. Invite a new user via the UI

Expected Behavior

The invited user should receive an invitation email.

Originally created by @Seanluc17 on GitHub (Jan 7, 2026). Original GitHub issue: https://github.com/fosrl/pangolin/issues/2219 ### Describe the Bug In Pangolin 1.14.1, invitation emails are not sent even though SMTP is correctly configured and verified to be working. When inviting a user via the UI, Pangolin reports that the email was sent, but no email is delivered. The SMTP provider (Resend) does not receive any request. Pangolin logs show an error indicating missing email fields, although all required fields are configured. Log output: [error]: Email missing required fields {"to":"user@example.com","subject":"You're invited to join MyOrganization"} Additional notes: - SMTP connectivity was verified manually using swaks inside the container. - Resend domain is fully verified (SPF, DKIM, MX). - Sending test emails via swaks succeeds. - No request appears in Resend logs when Pangolin sends invites. ### Environment Pangolin version: 1.14.1 (Docker image: fosrl/pangolin:latest) Deployment: Docker Compose Email provider: SMTP (Resend) Operating system: Linux (Hetzner VPS) ### To Reproduce 1. Configure SMTP in config.yml: email: enabled: true provider: smtp from: "Bruchtal <noreply@mydomain.com>" smtp: host: smtp.resend.com port: 587 secure: false user: resend pass: <valid password> 2. Start Pangolin 1.14.1 3. Log in to the UI as admin 4. Invite a new user via the UI ### Expected Behavior The invited user should receive an invitation email.
GiteaMirror added the stale label 2026-04-16 09:05:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.

<!-- gh-comment-id:3781861352 --> @github-actions[bot] commented on GitHub (Jan 22, 2026): This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
Author
Owner

@Cruellest commented on GitHub (Jan 24, 2026):

Did you found some workaround?

<!-- gh-comment-id:3794825725 --> @Cruellest commented on GitHub (Jan 24, 2026): Did you found some workaround?
Author
Owner

@Seanluc17 commented on GitHub (Jan 24, 2026):

unfortunately not yet.
The only possible operation ist to send the invatiation link manually - really not what i want to do

<!-- gh-comment-id:3794937518 --> @Seanluc17 commented on GitHub (Jan 24, 2026): unfortunately not yet. The only possible operation ist to send the invatiation link manually - really not what i want to do
Author
Owner

@miloschwartz commented on GitHub (Jan 24, 2026):

Configure SMTP in config.yml:

email:
enabled: true
provider: smtp
from: "Bruchtal noreply@mydomain.com"
smtp:
host: smtp.resend.com
port: 587
secure: false
user: resend
pass:

You're seeing the Email missing required fields error because the from address is not being loaded from the config file. Pangolin's config pulls the from address from email.no_reply not email.from as you have it. You can see the config in the docs: https://docs.pangolin.net/self-host/advanced/config-file#param-no-reply

The address also needs to be only a valid email, like noreply@mydomain.com, not Bruchtal noreply@mydomain.com.

<!-- gh-comment-id:3795413339 --> @miloschwartz commented on GitHub (Jan 24, 2026): ``` Configure SMTP in config.yml: email: enabled: true provider: smtp from: "Bruchtal noreply@mydomain.com" smtp: host: smtp.resend.com port: 587 secure: false user: resend pass: ``` You're seeing the `Email missing required fields` error because the from address is not being loaded from the config file. Pangolin's config pulls the from address from `email.no_reply` not `email.from` as you have it. You can see the config in the docs: https://docs.pangolin.net/self-host/advanced/config-file#param-no-reply The address also needs to be only a valid email, like `noreply@mydomain.com`, not `Bruchtal noreply@mydomain.com`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#2103