Yash goyal commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -168,7 +168,28 @@ def send_email_async(app_context, report_data):
|
|
| 168 |
from_email='snapskinofficial@gmail.com', # IMPORTANT: Use the email you verified on SendGrid
|
| 169 |
to_emails=report_data['email'],
|
| 170 |
subject='Your SnapSkin Diagnostic Report',
|
| 171 |
-
html_content=f"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
)
|
| 173 |
|
| 174 |
# 3. Read the PDF and attach it to the email
|
|
|
|
| 168 |
from_email='snapskinofficial@gmail.com', # IMPORTANT: Use the email you verified on SendGrid
|
| 169 |
to_emails=report_data['email'],
|
| 170 |
subject='Your SnapSkin Diagnostic Report',
|
| 171 |
+
html_content=f"""
|
| 172 |
+
<div style="font-family: Inter, Arial, sans-serif; max-width: 600px; margin: auto; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden;">
|
| 173 |
+
<div style="background-color: #7e54ff; color: white; padding: 20px; text-align: center;">
|
| 174 |
+
<h1>SnapSkin Analysis Complete</h1>
|
| 175 |
+
</div>
|
| 176 |
+
<div style="padding: 20px 30px; color: #333; line-height: 1.7;">
|
| 177 |
+
<h3>Hello {report_data['name']},</h3>
|
| 178 |
+
<p>Your AI-powered skin lesion analysis is complete. The diagnostic report is attached to this email as a PDF document for your review.</p>
|
| 179 |
+
<p>This report contains the preliminary findings based on our model's assessment of the uploaded image.</p>
|
| 180 |
+
<div style="text-align: center; margin: 30px 0;">
|
| 181 |
+
<a href="#" style="background-color: #6c43ff; color: white; padding: 12px 25px; text-decoration: none; border-radius: 5px; font-weight: bold;">Review Your Report (Attached)</a>
|
| 182 |
+
</div>
|
| 183 |
+
<p><strong>Next Steps:</strong> For a definitive diagnosis and medical advice, please share this report with a healthcare professional.</p>
|
| 184 |
+
<p style="font-size: 0.85em; color: #888; border-top: 1px solid #e0e0e0; padding-top: 15px; margin-top: 20px;">
|
| 185 |
+
Please note: This is an automated report and should not be considered a final medical diagnosis.
|
| 186 |
+
</p>
|
| 187 |
+
</div>
|
| 188 |
+
<div style="background-color: #f7f7f7; padding: 15px; text-align: center; font-size: 0.8em; color: #aaa;">
|
| 189 |
+
© 2025 SnapSkin. All rights reserved.
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
"""
|
| 193 |
)
|
| 194 |
|
| 195 |
# 3. Read the PDF and attach it to the email
|