Enquiry received email
The email someone gets after using your contact form: a dithered blue header, a note that a person will reply, and a recap of what they wrote.
|
Logoipsum · 100 Example Street, Springfield |
Options
Code
import { Body, Container, Head, Heading, Html, Img, Link, Preview, Section, Text } from "@react-email/components";
const font = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif";
const images = "https://designs.here/emails";
const ink = "#171717";
const soft = "#5c5c5c";
const faint = "#8a8a8a";
const mono = "ui-monospace, SFMono-Regular, Menlo, monospace";
const body = { margin: 0, padding: "32px 16px", background: "#ffffff", fontFamily: font };
const card = { width: "100%", maxWidth: 400, border: "1px solid #e3e3e0", borderRadius: 10, overflow: "hidden", background: "#ffffff" };
const title = { margin: "0 0 4px", fontSize: 16, lineHeight: "24px", fontWeight: 500, letterSpacing: "-0.02em", color: ink };
const footer = { margin: "16px 0 0", fontSize: 11, lineHeight: "16px", color: faint, textAlign: "center" };
const label = { margin: 0, fontSize: 12, lineHeight: "18px", color: faint };
const value = { margin: 0, fontSize: 13, lineHeight: "20px", color: ink };
const example = {
name: "Maya",
email: "[email protected]",
subject: "New website for our studio",
message: "We are a team of six and need a new site with a small shop by spring. Could we talk through timing and cost next week?",
sent: "4 December 2026 at 10:42",
reply: "within one working day, usually sooner",
};
/* Sent to someone straight after they use the contact form: it says a person
will reply, and shows them what they wrote. */
export function InquiryEmail(props) {
const { name, email, subject, message, sent, reply } = { ...example, ...props };
return (
<Html lang="en">
<Head />
<Preview>{"We got your message and will reply " + reply + "."}</Preview>
<Body style={body}>
<Container style={card}>
<Section style={{ height: 96, background: "#1647d6 url(" + images + "/dither-header.png) center top / 100% 96px no-repeat" }}>
<Img src={images + "/logo-white.png"} width={114} height={20} alt="Logoipsum" style={{ display: "block", margin: "20px 24px 56px" }} />
</Section>
<Section style={{ padding: "12px 24px 20px" }}>
<Heading as="h1" style={title}>We got your message</Heading>
<Text style={{ margin: 0, fontSize: 13, lineHeight: "20px", color: soft }}>
Thanks, {name}. A person will read it and reply {reply}.
</Text>
</Section>
<Section style={{ padding: "0 24px" }}>
<Section style={{ borderRadius: 8, background: "#f7f7f6" }}>
<Section style={{ padding: "10px 12px 10px" }}>
<Text style={label}>Subject</Text>
<Text style={value}>{subject}</Text>
</Section>
<Section style={{ padding: "10px 12px 10px", borderTop: "1px solid #e3e3e0" }}>
<Text style={label}>Your message</Text>
<Text style={value}>{message}</Text>
</Section>
</Section>
</Section>
<Section style={{ padding: "16px 24px 26px" }}>
<Text style={label}>
Sent {sent} from{" "}
<Link href={"mailto:" + email} style={{ color: ink, textDecoration: "none" }}>{email}</Link>. Want to add something? Reply to this email.
</Text>
</Section>
</Container>
<Text style={{ ...footer, fontFamily: mono }}>Logoipsum · 100 Example Street, Springfield</Text>
</Body>
</Html>
);
}
export default InquiryEmail;<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light" />
<title>We got your message</title>
</head>
<body style="margin:0;padding:0;background:#ffffff;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#ffffff;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;">
<tr>
<td align="center" style="padding:32px 16px;">
<table role="presentation" width="400" cellpadding="0" cellspacing="0" style="width:100%;max-width:400px;border:1px solid #e3e3e0;border-radius:10px;overflow:hidden;background:#ffffff;">
<tr>
<td height="96" valign="top" bgcolor="#1647d6" background="https://designs.here/emails/dither-header.png" style="height:76px;padding:20px 24px 0;background:#1647d6 url(https://designs.here/emails/dither-header.png) center top / 100% 96px no-repeat;"><img src="https://designs.here/emails/logo-white.png" width="114" height="20" alt="Logoipsum" style="display:block;border:0;" /></td>
</tr>
<tr>
<td style="padding:12px 24px 20px;">
<h1 style="margin:0 0 4px;font-size:16px;line-height:24px;font-weight:500;letter-spacing:-0.02em;color:#171717;">We got your message</h1>
<p style="margin:0;font-size:13px;line-height:20px;color:#5c5c5c;">Thanks, Maya. A person will read it and reply within one working day, usually sooner.</p>
</td>
</tr>
<tr>
<td style="padding:0 24px;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="border-radius:8px;background:#f7f7f6;">
<tr>
<td style="padding:10px 12px 0;font-size:12px;line-height:18px;color:#8a8a8a;">Subject</td>
</tr>
<tr>
<td style="padding:0 12px 10px;font-size:13px;line-height:20px;color:#171717;">New website for our studio</td>
</tr>
<tr>
<td style="padding:10px 12px 0;border-top:1px solid #e3e3e0;font-size:12px;line-height:18px;color:#8a8a8a;">Your message</td>
</tr>
<tr>
<td style="padding:0 12px 10px;font-size:13px;line-height:20px;color:#171717;">We are a team of six and need a new site with a small shop by spring. Could we talk through timing and cost next week?</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:16px 24px 26px;">
<p style="margin:0;font-size:12px;line-height:18px;color:#8a8a8a;">Sent 4 December 2026 at 10:42 from <a href="mailto:[email protected]" style="color:#171717;text-decoration:none;">[email protected]</a>. Want to add something? Reply to this email.</p>
</td>
</tr>
</table>
<p style="margin:16px 0 0;font-size:11px;line-height:16px;color:#8a8a8a;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;">Logoipsum · 100 Example Street, Springfield</p>
</td>
</tr>
</table>
</body>
</html>Enquiry received email is not in the Figma file yet.
Use the React or HTML code for now.