diff --git a/.claude/settings.local.json b/.claude/settings.local.json index c24979e..b863243 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -15,7 +15,8 @@ "Bash(node -e \"const r = require\\('react-icons/fa'\\); const keys = Object.keys\\(r\\).filter\\(k => k.toLowerCase\\(\\).includes\\('migrat'\\) || k.toLowerCase\\(\\).includes\\('sync'\\) || k.toLowerCase\\(\\).includes\\('exchange'\\) || k.toLowerCase\\(\\).includes\\('arrow'\\)\\).slice\\(0,15\\); console.log\\(keys.join\\('\\\\n'\\)\\);\")", "Bash(node -e \"const r = require\\('react-icons/fa'\\); console.log\\('FaExchangeAlt' in r, 'FaSyncAlt' in r, 'FaCloudUploadAlt' in r, 'FaRandom' in r, 'FaDatabase' in r\\);\")", "Bash(node -e \"const r = require\\('react-icons/gi'\\); console.log\\('GiStabilizer' in r, 'GiDroneBoy' in r, 'GiCctvCamera' in r, 'GiFilmProjector' in r, 'GiGyroscope' in r\\);\")", - "Bash(node -e \"const r = require\\('react-icons/si'\\); const celery = Object.keys\\(r\\).filter\\(k => k.toLowerCase\\(\\).includes\\('celery'\\) || k.toLowerCase\\(\\).includes\\('worker'\\) || k.toLowerCase\\(\\).includes\\('task'\\)\\).slice\\(0,10\\); console.log\\(celery\\);\")" + "Bash(node -e \"const r = require\\('react-icons/si'\\); const celery = Object.keys\\(r\\).filter\\(k => k.toLowerCase\\(\\).includes\\('celery'\\) || k.toLowerCase\\(\\).includes\\('worker'\\) || k.toLowerCase\\(\\).includes\\('task'\\)\\).slice\\(0,10\\); console.log\\(celery\\);\")", + "Bash(Get-ChildItem -Path \"c:\\\\Users\\\\bruno\\\\Documents\\\\GitHub\\\\vontor-cz\\\\backend\\\\\" -Directory | Select-Object -ExpandProperty Name)" ] } } diff --git a/backend/advertisement/tasks.py b/backend/advertisement/tasks.py index d6b7845..30a7527 100644 --- a/backend/advertisement/tasks.py +++ b/backend/advertisement/tasks.py @@ -14,8 +14,10 @@ def send_contact_me_email_task(client_email, message_content): "client_email": client_email, "message_content": message_content } + config_email = SiteConfiguration.get_solo().contact_email + recipient = config_email if config_email else "brunovontor@gmail.com" send_email_with_context( - recipients=SiteConfiguration.get_solo().contact_email, + recipients=recipient, subject="Poptávka z kontaktního formuláře!!!", template_path="email/contact_me.html", context=context, diff --git a/backend/templates/email/contact_me.html b/backend/templates/email/contact_me.html new file mode 100644 index 0000000..1f9d9ab --- /dev/null +++ b/backend/templates/email/contact_me.html @@ -0,0 +1,45 @@ + +
+ + 📬 Nová zpráva z kontaktního formuláře +++ Přišla poptávka přes vontor.cz + + |
+
|
+ Od + + |
+
|
+ Zpráva +{{ message_content }} + |
+
| + + Odpovědět + + | +
Zpráva odeslána!
++ Ozvu se vám do 24 hodin. +
+ +Reach out via the form or use the details below.
+