Skip to content

Commit 52bae2b

Browse files
committed
feat(contact): improve email formatting for professional appearance
- Add professional greeting and business-friendly structure - Include contact information in organized bullet points - Add proper closing with sender's name - Include portfolio URL reference for context - Update success message to reflect improved formatting
1 parent 91a57fa commit 52bae2b

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

src/components/Contact.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,24 @@ const Contact: React.FC = () => {
1717
setSubmitStatus('idle');
1818

1919
try {
20-
// Create email content
20+
// Create professional email content
2121
const subject = `Portfolio Contact from ${formData.name}`;
22-
const body = `Name: ${formData.name}\nEmail: ${formData.email}\n\nMessage:\n${formData.message}`;
22+
const body = `Hi David,
23+
24+
I hope this message finds you well. I came across your portfolio and would like to connect regarding potential opportunities.
25+
26+
Contact Information:
27+
• Name: ${formData.name}
28+
• Email: ${formData.email}
29+
30+
Message:
31+
${formData.message}
32+
33+
Best regards,
34+
${formData.name}
35+
36+
---
37+
This message was sent from your portfolio contact form at https://davidagustin.github.io`;
2338

2439
// Create mailto link
2540
const mailtoLink = `mailto:davidsyagustin@gmail.com?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
@@ -176,7 +191,7 @@ const Contact: React.FC = () => {
176191
{/* Status Messages */}
177192
{submitStatus === 'success' && (
178193
<div className="p-4 bg-green-100 border border-green-400 text-green-700 rounded-lg">
179-
Message sent successfully! Your email client should open with the message ready to send.
194+
Perfect! Your email client should now open with a professionally formatted message ready to send. The email includes your contact information and message in a clean, business-friendly format.
180195
</div>
181196
)}
182197

0 commit comments

Comments
 (0)