email integration

* Nest email module with smtp, postmark and console log drivers
* react-email package
This commit is contained in:
Philipinho
2024-05-02 03:12:40 +01:00
parent 48be0c21ae
commit 4c573b9bc2
26 changed files with 2685 additions and 446 deletions

View File

@ -0,0 +1,43 @@
import { footer, h1, logo, main } from "../css/styles";
import {
Body,
Head,
Heading,
Html,
Row,
Section,
Text,
} from "@react-email/components";
import * as React from "react";
interface MailBodyProps {
children: React.ReactNode;
}
export function MailBody({ children }: MailBodyProps) {
return (
<Html>
<Head />
<Body style={main}>{children}</Body>
</Html>
);
}
export function MailHeader() {
return (
<Section style={logo}>
<Heading style={h1}>logo/text</Heading>
</Section>
);
}
export function MailFooter() {
return (
<Section style={footer}>
<Row>
<Text style={{ textAlign: "center", color: "#706a7b" }}>
© {new Date().getFullYear()}, All Rights Reserved <br />
</Text>
</Row>
</Section>
);
}