mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-17 02:01:03 +10:00
email integration
* Nest email module with smtp, postmark and console log drivers * react-email package
This commit is contained in:
26
packages/transactional/emails/test-email.tsx
Normal file
26
packages/transactional/emails/test-email.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import { Container, Section, Text } from "@react-email/components";
|
||||
import * as React from "react";
|
||||
import { container, content, paragraph } from "../css/styles";
|
||||
import { MailBody, MailFooter } from "../partials/partials";
|
||||
|
||||
interface WelcomeEmailProps {
|
||||
username?: string;
|
||||
}
|
||||
|
||||
export const TestEmail = ({ username }: WelcomeEmailProps) => {
|
||||
return (
|
||||
<MailBody>
|
||||
<Container style={container}>
|
||||
<Section style={content}>
|
||||
<Text style={paragraph}>Hi {username},</Text>
|
||||
<Text style={paragraph}>
|
||||
This is a test email. Make sure to read it.
|
||||
</Text>
|
||||
</Section>
|
||||
</Container>
|
||||
<MailFooter />
|
||||
</MailBody>
|
||||
);
|
||||
};
|
||||
|
||||
export default TestEmail;
|
||||
Reference in New Issue
Block a user