- Remove strip_tags usage and use explicit fallback text for HTML emails - Use named parameters in EmailMultiAlternatives for better clarity - Add fail_silently=False to email.send() for explicit error handling - Rename variables (html_content -> html_message, email_msg -> email) - Remove action buttons from appointment email templates These changes improve code readability and provide a clearer fallback message for non-HTML email clients instead of relying on stripped HTML. |
||
|---|---|---|
| .. | ||
| migrations | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| email_service.py | ||
| models.py | ||
| serializers.py | ||
| tasks.py | ||
| tests.py | ||
| urls.py | ||
| views.py | ||