Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: update welcome email

Marc Seitz81dbd9388b7b
diff --git a/components/emails/shared/footer.tsx b/components/emails/shared/footer.tsx
index b578f27c..faac6144 100644
--- a/components/emails/shared/footer.tsx
+++ b/components/emails/shared/footer.tsx
@@ -1,12 +1,39 @@
-import { Hr, Section, Text } from "@react-email/components";
+import { Hr, Link, Section, Text } from "@react-email/components";
export const Footer = ({
withAddress = false,
+ marketing = false,
footerText = "If you have any feedback or questions about this email, simply reply to it. I'd love to hear from you!",
}: {
withAddress?: boolean;
+ marketing?: boolean;
footerText?: string | React.ReactNode;
}) => {
+ if (marketing) {
+ return (
+ <>
+ <Hr className="mx-0 my-6 w-full border border-neutral-200" />
+ <Text className="text-[12px] leading-6 text-neutral-500">
+ We send out product update emails once a month – no spam, no nonsense.
+ Don't want to get these emails?{" "}
+ <Link
+ className="text-neutral-700 underline"
+ href="https://app.papermark.com/account/general"
+ >
+ Unsubscribe here.
+ </Link>
+ </Text>
+ <Text className="text-[12px] text-neutral-500">
+ Papermark, Inc.
+ <br />
+ 1111B S Governors Ave #28117
+ <br />
+ Dover, DE 19904
+ </Text>
+ </>
+ );
+ }
+
return (
<>
<Hr />
diff --git a/components/emails/verification-link.tsx b/components/emails/verification-link.tsx
index 06cf9e2d..6269d889 100644
--- a/components/emails/verification-link.tsx
+++ b/components/emails/verification-link.tsx
@@ -2,10 +2,11 @@ import React from "react";
import {
Body,
- Button,
Container,
Head,
+ Heading,
Html,
+ Link,
Preview,
Section,
Tailwind,
@@ -22,28 +23,31 @@ const VerificationLinkEmail = ({
return (
<Html>
<Head />
- <Preview>Login to your Papermark account with a link</Preview>
+ <Preview>Your Papermark Login Link</Preview>
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
- <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">
- <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
- <span className="font-bold tracking-tighter">Papermark</span>
- </Text>
- <Text className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
- Your Papermark Login Link
+ <Container className="mx-auto my-10 max-w-[600px] rounded border border-solid border-neutral-200 px-10 py-5">
+ <Section className="mt-8">
+ <Text className="text-2xl font-bold tracking-tighter">
+ Papermark
+ </Text>
+ </Section>
+ <Heading className="mx-0 my-7 p-0 text-lg font-medium text-black">
+ Your Login Link
+ </Heading>
+ <Text className="text-sm leading-6 text-black">
+ Welcome to Papermark!
</Text>
-
<Text className="text-sm leading-6 text-black">
Please click the magic link below to sign in to your account.
</Text>
- <Section className="my-8 text-center">
- <Button
- className="rounded bg-black text-center text-xs font-semibold text-white no-underline"
+ <Section className="my-8">
+ <Link
+ className="rounded-lg bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"
href={url}
- style={{ padding: "12px 20px" }}
>
Sign in
- </Button>
+ </Link>
</Section>
<Text className="text-sm leading-6 text-black">
or copy and paste this URL into your browser:
diff --git a/components/emails/welcome.tsx b/components/emails/welcome.tsx
index a441ccbb..065e3e86 100644
--- a/components/emails/welcome.tsx
+++ b/components/emails/welcome.tsx
@@ -2,9 +2,9 @@ import React from "react";
import {
Body,
- Button,
Container,
Head,
+ Heading,
Hr,
Html,
Link,
@@ -21,91 +21,113 @@ interface WelcomeEmailProps {
}
const WelcomeEmail = ({ name }: WelcomeEmailProps) => {
- const previewText = `The document sharing infrastructure for the modern web`;
-
return (
<Html>
<Head />
- <Preview>{previewText}</Preview>
+ <Preview>Welcome to Papermark</Preview>
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
- <Container className="mx-auto my-10 w-[465px] p-5">
- <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
- Welcome to{" "}
- <span className="font-bold tracking-tighter">Papermark</span>
- </Text>
- <Text className="text-sm">
- Thanks for signing up{name && `, ${name}`}!
- </Text>
- <Text className="text-sm">
- My name is Marc, and I&apos;m the founder of Papermark – the
- secure way to share documents and data rooms. I&apos;m excited to
- have you on board!
- </Text>
- <Text className="text-sm">
- Here are a few things you can do to get started:
- </Text>
- <ul className="list-inside list-disc text-sm">
- <li>Turn your documents into shareable links</li>
- <li>Create secure virtual data rooms</li>
- <li>
- Share your documents{" "}
- <span className="italic">(with custom domain)✨</span>
- </li>
- <li>Watch the page-by-page insights in real-time</li>
- </ul>
- <Section className="my-8 text-center">
- <Button
- className="rounded bg-black text-center text-xs font-semibold text-white no-underline"
- href={`${process.env.NEXT_PUBLIC_BASE_URL}/welcome`}
- style={{ padding: "12px 20px" }}
- >
- Get Started
- </Button>
+ <Container className="mx-auto my-10 max-w-[600px] rounded border border-solid border-neutral-200 px-10 py-5">
+ <Section className="mt-8">
+ <Text className="text-2xl font-bold tracking-tighter">
+ Papermark
+ </Text>
</Section>
+ <Heading className="mx-0 my-7 p-0 text-xl font-semibold text-black">
+ Welcome {name ? name : "to Papermark"}!
+ </Heading>
+ <Text className="mb-8 text-sm leading-6 text-gray-600">
+ Thank you for signing up for Papermark! You can now start sharing
+ documents securely, create data rooms, and track engagement in
+ real-time.
+ </Text>
- <Section className="mt-4">
- <Text className="text-sm">
- If you have any questions or feedback just respond to this
- email.{" "}
- <Link
- href="https://cal.link/papermark"
- target="_blank"
- rel="noopener noreferrer"
- >
- Book a call
- </Link>{" "}
- to discuss your enterprise needs. I&apos;m always happy to help!
- </Text>
+ <Hr />
- <Text className="text-sm text-gray-400">Marc from Papermark</Text>
- </Section>
- <Footer />
- <Text className="flex gap-x-1 text-xs">
+ <Heading className="mx-0 my-6 p-0 text-lg font-semibold text-black">
+ Getting started
+ </Heading>
+
+ <Text className="mb-4 text-sm leading-6 text-gray-600">
+ <strong className="font-medium text-black">
+ 1. Upload your document
+ </strong>
+ : Simply{" "}
<Link
- href="https://www.papermark.com/customers"
- target="_blank"
- className="text-xs text-gray-400"
+ href="https://www.papermark.com/help/article/how-to-upload-document"
+ className="font-semibold text-black underline underline-offset-4"
>
- Customer stories
- </Link>
+ drag and drop
+ </Link>{" "}
+ your PDF, spreadsheet, or presentation to create a shareable link.
+ </Text>
+
+ <Text className="mb-4 text-sm leading-6 text-gray-600">
+ <strong className="font-medium text-black">
+ 2. Share securely
+ </strong>
+ : Add{" "}
<Link
- href="https://x.com/papermarkio"
- target="_blank"
- className="text-xs text-gray-400"
- rel="noopener noreferrer"
+ href="https://www.papermark.com/help/article/require-email-verification"
+ className="font-semibold text-black underline underline-offset-4"
>
- · X/Twitter
+ email verification
</Link>
+ ,{" "}
<Link
- href="https://www.linkedin.com/company/papermarkio"
- target="_blank"
- className="text-xs text-gray-400"
- rel="noopener noreferrer"
+ href="https://www.papermark.com/password-protection"
+ className="font-semibold text-black underline underline-offset-4"
>
- · LinkedIn
+ password protection
</Link>
+ , or{" "}
+ <Link
+ href="https://www.papermark.com/help/article/expiration-date"
+ className="font-semibold text-black underline underline-offset-4"
+ >
+ link expiration
+ </Link>{" "}
+ to control access.
+ </Text>
+
+ <Text className="mb-4 text-sm leading-6 text-gray-600">
+ <strong className="font-medium text-black">
+ 3. Track engagement
+ </strong>
+ : Watch{" "}
+ <Link
+ href="https://www.papermark.com/help/article/built-in-page-by-page-analytics"
+ className="font-semibold text-black underline underline-offset-4"
+ >
+ page-by-page analytics
+ </Link>{" "}
+ in real-time to see who's viewing your documents.
</Text>
+
+ <Text className="mb-8 text-sm leading-6 text-gray-600">
+ <strong className="font-medium text-black">
+ 4. Create a data room
+ </strong>
+ :{" "}
+ <Link
+ href="https://www.papermark.com/help/article/create-data-room"
+ className="font-semibold text-black underline underline-offset-4"
+ >
+ Set up a secure data room
+ </Link>{" "}
+ for due diligence and enterprise document sharing.
+ </Text>
+
+ <Section className="mb-8">
+ <Link
+ className="rounded-lg bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"
+ href={`${process.env.NEXT_PUBLIC_BASE_URL}/dashboard`}
+ >
+ Go to your dashboard
+ </Link>
+ </Section>
+
+ <Footer marketing />
</Container>
</Body>
</Tailwind>
diff --git a/lib/emails/send-welcome.ts b/lib/emails/send-welcome.ts
index 9ae7f9e1..c62e59fb 100644
--- a/lib/emails/send-welcome.ts
+++ b/lib/emails/send-welcome.ts
@@ -14,6 +14,7 @@ export const sendWelcomeEmail = async (params: CreateUserEmailProps) => {
subject: "Welcome to Papermark!",
react: emailTemplate,
test: process.env.NODE_ENV === "development",
+ unsubscribeUrl: `${process.env.NEXT_PUBLIC_BASE_URL}/account/general`,
});
} catch (e) {
console.error(e);