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 emailHtml = await render(template);
const appName = "Fossorial - Pangolin"; const appName = "Pangolin";
await emailClient.sendMail({ await emailClient.sendMail({
from: { from: {

View file

@ -12,7 +12,7 @@ export default function ButtonLink({
return ( return (
<a <a
href={href} 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={{ style={{
backgroundColor: "#F97316", backgroundColor: "#F97316",
textDecoration: "none" textDecoration: "none"

View file

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