fix emails

This commit is contained in:
miloschwartz 2025-07-17 13:20:27 -07:00
parent 417811e94f
commit 1159a79410
No known key found for this signature in database
3 changed files with 19 additions and 14 deletions

View file

@ -25,7 +25,7 @@ export async function sendEmail(
const emailHtml = await render(template);
const appName = "Fossorial - Pangolin";
const appName = "Pangolin";
await emailClient.sendMail({
from: {

View file

@ -12,7 +12,7 @@ export default function ButtonLink({
return (
<a
href={href}
className={`inline-block bg-primary hover:bg-primary/90 text-white font-semibold px-8 py-3 rounded-lg text-center no-underline transition-colors ${className}`}
className={`inline-block bg-primary text-white font-semibold px-8 py-3 rounded-lg text-center no-underline ${className}`}
style={{
backgroundColor: "#F97316",
textDecoration: "none"

View file

@ -1,5 +1,6 @@
import React from "react";
import { Container, Img } from "@react-email/components";
import { build } from "@server/build";
// EmailContainer: Wraps the entire email layout
export function EmailContainer({ children }: { children: React.ReactNode }) {
@ -81,6 +82,8 @@ export function EmailSection({
// EmailFooter: For closing or signature
export function EmailFooter({ children }: { children: React.ReactNode }) {
return (
<>
{build === "saas" && (
<div className="px-6 py-6 border-t border-gray-100 bg-gray-50">
{children}
<p className="text-xs text-gray-400 mt-4">
@ -89,10 +92,12 @@ export function EmailFooter({ children }: { children: React.ReactNode }) {
support@fossorial.io
</p>
<p className="text-xs text-gray-300 text-center mt-4">
&copy; {new Date().getFullYear()} Fossorial, Inc. All rights
reserved.
&copy; {new Date().getFullYear()} Fossorial, Inc. All
rights reserved.
</p>
</div>
)}
</>
);
}