Spaces:
Sleeping
Sleeping
Update utils/email_sender.py
Browse files- utils/email_sender.py +42 -14
utils/email_sender.py
CHANGED
|
@@ -55,32 +55,60 @@ class EmailSender:
|
|
| 55 |
|
| 56 |
def generate_email_body(self, candidate: Dict) -> str:
|
| 57 |
"""Generate HTML email body for shortlisted candidate"""
|
|
|
|
|
|
|
| 58 |
return f"""
|
| 59 |
<html>
|
| 60 |
-
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;">
|
| 61 |
-
<
|
| 62 |
-
|
| 63 |
-
|
|
|
|
| 64 |
|
| 65 |
-
<div style="background-color: #f8f9fa; padding:
|
| 66 |
-
<
|
| 67 |
-
<p
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
</p>
|
| 70 |
</div>
|
| 71 |
|
| 72 |
-
<
|
| 73 |
-
|
| 74 |
-
|
|
|
|
| 75 |
|
| 76 |
<p style="margin-top: 30px;">
|
| 77 |
Best regards,<br>
|
| 78 |
<strong>{self.from_name}</strong>
|
| 79 |
</p>
|
| 80 |
|
| 81 |
-
<hr style="border: none; border-top: 1px solid #ddd; margin: 30px 0;">
|
| 82 |
-
<p style="font-size: 12px; color: #7f8c8d;">
|
| 83 |
-
This is an automated message
|
|
|
|
| 84 |
</p>
|
| 85 |
</body>
|
| 86 |
</html>
|
|
|
|
| 55 |
|
| 56 |
def generate_email_body(self, candidate: Dict) -> str:
|
| 57 |
"""Generate HTML email body for shortlisted candidate"""
|
| 58 |
+
test_link = "https://www.assessment-test.com/start/12345" # Dummy test link
|
| 59 |
+
|
| 60 |
return f"""
|
| 61 |
<html>
|
| 62 |
+
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
|
| 63 |
+
<div style="text-align: center; margin-bottom: 30px;">
|
| 64 |
+
<h1 style="color: #2c3e50; margin-bottom: 10px;">🎉 Congratulations! 🎉</h1>
|
| 65 |
+
<p style="font-size: 18px; color: #2c3e50;">Your application has been shortlisted!</p>
|
| 66 |
+
</div>
|
| 67 |
|
| 68 |
+
<div style="background-color: #f8f9fa; padding: 25px; border-radius: 8px; margin-bottom: 25px; border-left: 5px solid #27ae60;">
|
| 69 |
+
<h2 style="color: #2c3e50; margin-top: 0;">Next Step: Online Assessment</h2>
|
| 70 |
+
<p>Dear {candidate['name']},</p>
|
| 71 |
+
|
| 72 |
+
<p>We are excited to inform you that your application has been shortlisted for the next round!</p>
|
| 73 |
+
|
| 74 |
+
<p>To proceed with your application, please complete the online assessment test by clicking the button below:</p>
|
| 75 |
+
|
| 76 |
+
<div style="text-align: center; margin: 30px 0;">
|
| 77 |
+
<a href="{test_link}"
|
| 78 |
+
style="display: inline-block; background-color: #27ae60; color: white;
|
| 79 |
+
padding: 12px 30px; text-decoration: none; border-radius: 5px;
|
| 80 |
+
font-weight: bold; font-size: 16px;">
|
| 81 |
+
🚀 Start Assessment Test
|
| 82 |
+
</a>
|
| 83 |
+
</div>
|
| 84 |
+
|
| 85 |
+
<p><strong>Test Details:</strong></p>
|
| 86 |
+
<ul>
|
| 87 |
+
<li>Duration: 60 minutes</li>
|
| 88 |
+
<li>Format: Multiple Choice Questions</li>
|
| 89 |
+
<li>Sections: Technical, Aptitude, and English Language</li>
|
| 90 |
+
<li>You will need a stable internet connection</li>
|
| 91 |
+
</ul>
|
| 92 |
+
|
| 93 |
+
<p style="background-color: #fff8e1; padding: 12px; border-radius: 4px; border-left: 4px solid #ffc107;">
|
| 94 |
+
<strong>Important:</strong> Please complete the test within 3 days of receiving this email.
|
| 95 |
</p>
|
| 96 |
</div>
|
| 97 |
|
| 98 |
+
<div style="margin-top: 30px; padding: 15px; background-color: #e8f4f8; border-radius: 5px;">
|
| 99 |
+
<h3 style="color: #2c3e50; margin-top: 0;">Need Help?</h3>
|
| 100 |
+
<p>If you encounter any issues with the test or have any questions, please reply to this email or contact us at support@resumeiq.com</p>
|
| 101 |
+
</div>
|
| 102 |
|
| 103 |
<p style="margin-top: 30px;">
|
| 104 |
Best regards,<br>
|
| 105 |
<strong>{self.from_name}</strong>
|
| 106 |
</p>
|
| 107 |
|
| 108 |
+
<hr style="border: none; border-top: 1px solid #ddd; margin: 30px 0 15px 0;">
|
| 109 |
+
<p style="font-size: 12px; color: #7f8c8d; text-align: center;">
|
| 110 |
+
This is an automated message. Please do not reply directly to this email.<br>
|
| 111 |
+
© 2023 ResumeIQ. All rights reserved.
|
| 112 |
</p>
|
| 113 |
</body>
|
| 114 |
</html>
|