dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

User invite email not sending

Open codeagencybe opened this issue 8 months ago • 1 comments

To Reproduce

  1. create a new smtp/mail notification channel first and make sure it works
  2. sent a new user invite into Dokploy, but nothing happens?

Is this to be expected? From the invite we have to enter and email and it also shows an email icon, so my expectations are that an email invitation is sent to the new user?

But nothing arrives at all. I have double checked that SMTP is working fine, and I receive all other notifications for deployments, backups, test notification etc... but nothing is sent for user invite.

Image

Is this is a bug?

Current vs. Expected behavior

Expecting that Dokploy sents an email with the invitation for the new user

Provide environment information

OS: Ubuntu 24.04 (default Hetzner image)
Dokploy Version v0.22.1
VPS provider: Hetzner

Which area(s) are affected? (Select all that apply)

Installation

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

Maybe, need help

codeagencybe avatar May 06 '25 04:05 codeagencybe

hey there, @codeagencybe. Dokploy uses Better Auth and has organization invitation emails configured, although it is only enabled if IS_CLOUD is true. To mitigate this issue, I would fork dokploy and modify sendInvitiationEmail and any other relating email notifications to use the sendEmail function without checking for IS_CLOUD. Hope this helps!

timmy-time avatar May 25 '25 01:05 timmy-time

Unable to Send New User Invites on Self-Hosted VPS

I'm experiencing an issue where Dokploy is unable to send new user invites on my self-hosted vps. I have already deployed the instance, and it is in production. I would like to learn if there is a solution to fix this without redeploying everything once again.

Environment Details: Hosting: Custom VPS on Hostinger Resources: 4 vCPUs, 16GB RAM Dokploy Version: v0.22.7

Steps to Reproduce: Attempt to invite a new user via the Dokploy interface Settings>Users>Invitations>+Add Invitations I am adding an email id for a member; there is no front-end error. It adds the user and says 'invitation pending'. But the member never receives any email. I have set up smtp in notifications.

Additional Information: I could not find any documentation regarding how to add new users to my self-hosted instance in the dokploy documentation.

Requested Assistance: Could you clarify what SMTP/email service configuration is required for user invites? What container images/logs should I prepare to help diagnose this issue?

@Siumauricio @timmy-time I'm happy to provide any additional system information, logs, or configuration details that would be helpful for troubleshooting.

naughtybinodini avatar Jun 16 '25 17:06 naughtybinodini

Unable to Send New User Invites on Self-Hosted VPS

I'm experiencing an issue where Dokploy is unable to send new user invites on my self-hosted vps. I have already deployed the instance, and it is in production. I would like to learn if there is a solution to fix this without redeploying everything once again.

Environment Details: Hosting: Custom VPS on Hostinger Resources: 4 vCPUs, 16GB RAM Dokploy Version: v0.22.7

Steps to Reproduce: Attempt to invite a new user via the Dokploy interface Settings>Users>Invitations>+Add Invitations I am adding an email id for a member; there is no front-end error. It adds the user and says 'invitation pending'. But the member never receives any email. I have set up smtp in notifications.

Additional Information: I could not find any documentation regarding how to add new users to my self-hosted instance in the dokploy documentation.

Requested Assistance: Could you clarify what SMTP/email service configuration is required for user invites? What container images/logs should I prepare to help diagnose this issue?

@Siumauricio @timmy-time I'm happy to provide any additional system information, logs, or configuration details that would be helpful for troubleshooting.

It is the same issue as what I posted last month. This is not a bug as far as I understand from @timmy-time his feedback. By default, this invitation only works if you are using Dokploy Cloud version.

I think this is something Dokploy still has to optimize to get rid of that is_cloud check so it can work also on selfhosted instances and uses your own smtp settings.

The only "quick" workaround for now is to manually copy the invitation URL and paste it in an email manually and send the email directly to the person you wanted to invite.

codeagencybe avatar Jun 16 '25 21:06 codeagencybe

Unable to Send New User Invites on Self-Hosted VPS

I'm experiencing an issue where Dokploy is unable to send new user invites on my self-hosted vps. I have already deployed the instance, and it is in production. I would like to learn if there is a solution to fix this without redeploying everything once again. Environment Details: Hosting: Custom VPS on Hostinger Resources: 4 vCPUs, 16GB RAM Dokploy Version: v0.22.7 Steps to Reproduce: Attempt to invite a new user via the Dokploy interface Settings>Users>Invitations>+Add Invitations I am adding an email id for a member; there is no front-end error. It adds the user and says 'invitation pending'. But the member never receives any email. I have set up smtp in notifications. Additional Information: I could not find any documentation regarding how to add new users to my self-hosted instance in the dokploy documentation. Requested Assistance: Could you clarify what SMTP/email service configuration is required for user invites? What container images/logs should I prepare to help diagnose this issue? @Siumauricio @timmy-time I'm happy to provide any additional system information, logs, or configuration details that would be helpful for troubleshooting.

It is the same issue as what I posted last month. This is not a bug as far as I understand from @timmy-time his feedback. By default, this invitation only works if you are using Dokploy Cloud version.

I think this is something Dokploy still has to optimize to get rid of that is_cloud check so it can work also on selfhosted instances and uses your own smtp settings.

The only "quick" workaround for now is to manually copy the invitation URL and paste it in an email manually and send the email directly to the person you wanted to invite.

Thank you so much for the reply. The work around is working. Hope they fix this issue soon.

naughtybinodini avatar Jun 18 '25 06:06 naughtybinodini