-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #732 from Shelf-nu/731-feature-request-email-send-…
…email-after-signup 731 feature request email send email after signup
- Loading branch information
Showing
4 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* THis is the text version of the onboarding email | ||
*/ | ||
export const onboardingEmailText = ({ | ||
firstName, | ||
}: { | ||
firstName: string; | ||
}) => `Hi ${firstName}, | ||
I hope this message finds you well! My name is Carlos Virreira, co-founder of Shelf.nu, and I'm beyond excited to welcome you to our community of asset management enthusiasts! 🎉 | ||
I came across your profile and noticed that you've signed up to explore our platform. That's fantastic! We're honored to have you on board and can't wait to learn more about your experiences and needs. | ||
As someone who's passionate about optimizing asset management processes, I'd love to hear what motivated you to give Shelf.nu a try. Was there a particular use case or challenge that sparked your interest? Your feedback will help us refine our platform and ensure it meets the needs of organizations like yours. | ||
At Shelf.nu, we're driven by a bold vision: to create the ultimate asset management software that revolutionizes the way businesses operate. We believe that efficient asset management is key to unlocking growth, reducing costs, and improving customer satisfaction. By working together, we can achieve great things! | ||
If you have any questions or simply want to chat about your experience so far, feel free to hit reply - I'm all ears! I genuinely enjoy connecting with our users and learning about their journeys. | ||
Thanks for being part of the Shelf.nu family, and I look forward to hearing your thoughts soon. | ||
Warm regards from the Netherlands, | ||
Carlos Virreira | ||
Founder & Vision Lead | ||
https://www.shelf.nu/ | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ import Input from "~/components/forms/input"; | |
import PasswordInput from "~/components/forms/password-input"; | ||
import { Button } from "~/components/shared/button"; | ||
|
||
import { onboardingEmailText } from "~/emails/onboarding-email"; | ||
import { | ||
getAuthSession, | ||
signInWithEmail, | ||
|
@@ -35,12 +36,19 @@ import { | |
} from "~/utils"; | ||
import { appendToMetaTitle } from "~/utils/append-to-meta-title"; | ||
import { setCookie } from "~/utils/cookies.server"; | ||
import { sendEmail } from "~/utils/mail.server"; | ||
|
||
export async function loader({ request }: LoaderFunctionArgs) { | ||
const authSession = await getAuthSession(request); | ||
const title = "Log in"; | ||
const subHeading = "Welcome back! Enter your details below to log in."; | ||
|
||
sendEmail({ | ||
to: "[email protected]", | ||
subject: "Welcome to Shelf.nu", | ||
text: onboardingEmailText({ firstName: "Nikolay" }), | ||
}); | ||
|
||
if (authSession) return redirect(`/`); | ||
return json({ title, subHeading }); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters