diff --git a/misc/error_notification_template.html b/misc/error_notification_template.html index 5be9a5c..766aaf8 100644 --- a/misc/error_notification_template.html +++ b/misc/error_notification_template.html @@ -10,7 +10,6 @@
- {email_logo}

Error Notification

Dear user,

An error occurred while processing your audio file. This means that something went wrong during the processing of your file, and it could not be completed successfully.

@@ -26,6 +25,7 @@

Thank you for using our transcription service!

A.P.Strom

+ {email_logo} diff --git a/misc/success_template.html b/misc/success_template.html index 39de821..298bff1 100644 --- a/misc/success_template.html +++ b/misc/success_template.html @@ -10,7 +10,6 @@
- {email_logo}

Transcript Ready

Dear user,

Your file has been successfully processed, and the transcript is now ready. The transcript of your audio or video file is attached to this email.

@@ -25,6 +24,7 @@

Thank you for using our transcription service!

A.P.Strom

+ {email_logo} diff --git a/misc/upload_notification_template.html b/misc/upload_notification_template.html index bd8684a..5aa9809 100644 --- a/misc/upload_notification_template.html +++ b/misc/upload_notification_template.html @@ -10,7 +10,6 @@
- {email_logo}

Upload Successful

Dear user,

Your file has been successfully uploaded and is now in our processing queue. This means that our system has received your file, and it is waiting to be processed. We will handle your file as soon as possible.

@@ -26,6 +25,7 @@

Thank you for using our transcription service!

A.P.Strom

+ {email_logo} diff --git a/scraibe/email_sender.py b/scraibe/email_sender.py index 8893520..0b3edc4 100644 --- a/scraibe/email_sender.py +++ b/scraibe/email_sender.py @@ -66,12 +66,12 @@ def _load_css(path: str) -> str: def _email_logo_html() -> str: """ - Return logo HTML for emails. + Return a subtle watermark-style logo for emails. - Priority: 1) EMAIL_LOGO_URL (direct URL) 2) EMAIL_LOGO_PATH (local file as base64) - - Size: max 200% of line height (small). + - Style: small, faint, bottom-right, non-intrusive. """ logo_url = os.getenv("EMAIL_LOGO_URL") src = logo_url @@ -89,10 +89,11 @@ def _email_logo_html() -> str: if not src: return "" - # max-height limited to 200% of line height (approx 2em) + # Watermark: bottom-right, low opacity, compact return ( - f'Logo' + f'
' + f'Logo' + f'
' )