-
-
+
+
+ {/* Header */}
+
-
- Join to Dokploy
-
-
- Hello,
-
-
- You have been invited to join Dokploy, a platform
- that helps for deploying your apps to the cloud.
-
-
-
+
+ {/* Body */}
+
+
+ You've been invited to join {organizationName}
+
+
+ You have been invited to join{" "}
+ {organizationName}{" "}
+ on Dokploy, the platform for deploying your apps to the cloud.
+ Click the button below to accept the invitation.
+
+
+ {/* CTA Button */}
+
+
+
+
+
+ If the button above doesn't work, copy and paste the following
+ link into your browser:
+
+
+ {inviteLink}
+
+
+
+ {/* Footer */}
+
+
+
+ This invitation was intended for{" "}
+ {toEmail}. This invite
+ was sent from{" "}
+
+ Dokploy Cloud
+
+ . If you were not expecting this invitation, you can safely
+ ignore this email.
+
-
- or copy and paste this URL into your browser:{" "}
-
- https://dokploy.com
-
-
-
-
- This invitation was intended for {toEmail}. This invite was sent
- from dokploy.com. If you
- were not expecting this invitation, you can ignore this email. If
- you are concerned about your account's safety, please reply to
-
diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts
index e6fd0ba59..717c20246 100644
--- a/packages/server/src/index.ts
+++ b/packages/server/src/index.ts
@@ -108,6 +108,7 @@ export * from "./utils/notifications/docker-cleanup";
export * from "./utils/notifications/dokploy-restart";
export * from "./utils/notifications/server-threshold";
export * from "./utils/notifications/utils";
+export * from "./verification/send-verification-email";
export * from "./utils/process/execAsync";
export * from "./utils/process/spawnAsync";
export * from "./utils/providers/bitbucket";
diff --git a/packages/server/src/lib/auth.ts b/packages/server/src/lib/auth.ts
index afbc57881..069be48cc 100644
--- a/packages/server/src/lib/auth.ts
+++ b/packages/server/src/lib/auth.ts
@@ -409,23 +409,6 @@ const { handler, api } = betterAuth({
enabled: true,
maximumRolesPerOrganization: 10,
},
- async sendInvitationEmail(data, _request) {
- if (IS_CLOUD) {
- const host =
- process.env.NODE_ENV === "development"
- ? "http://localhost:3000"
- : "https://app.dokploy.com";
- const inviteLink = `${host}/invitation?token=${data.id}`;
-
- await sendEmail({
- email: data.email,
- subject: "Invitation to join organization",
- text: `
-
You are invited to join ${data.organization.name} on Dokploy. Click the link to accept the invitation: Accept Invitation