diff --git a/.env.development b/.env.development index 9202801..6e49486 100644 --- a/.env.development +++ b/.env.development @@ -8,7 +8,7 @@ NEXT_PUBLIC_PUBLIC_URL=https://localhost:3003 DATABASE=mysql://cart:cartpw@localhost:3306/cart -EMAIL_SENDER='"ССС [ТЕСТ] " ' +EMAIL_SENDER='"ССОМ [ТЕСТ] " ' # MAILTRAP_HOST_BULK=bulk.smtp.mailtrap.io # MAILTRAP_HOST=sandbox.smtp.mailtrap.io # MAILTRAP_USER=8ec69527ff2104 diff --git a/public/manifest.json b/public/manifest.json index 8e0cc91..896de3b 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -20,7 +20,7 @@ "dir": "auto", "lang": "en-US", "name": "Специално Свидетелстване София", - "short_name": "ССС", + "short_name": "ССОМ", "start_url": "/", "scope": "/cart" } \ No newline at end of file diff --git a/src/helpers/email.js b/src/helpers/email.js index 80eef96..21b6f31 100644 --- a/src/helpers/email.js +++ b/src/helpers/email.js @@ -74,7 +74,7 @@ function normalizeEmailAddresses(to) { exports.SendEmail = async function (to, subject, text, html, attachments = []) { - let sender = process.env.EMAIL_SENDER || '"Специално Свидетелстване София " '; + let sender = process.env.EMAIL_SENDER || '"Специално Свидетелстване София" '; let emailAddresses = normalizeEmailAddresses(to) const bypassEmailReccipients = process.env.EMAIL_BYPASS_TO || null; @@ -114,7 +114,7 @@ exports.SendEmailHandlebars = async function (to, templateName, model, attachmen const subjectMatch = templateSource.match(/{{!--\s*Subject:\s*(.*?)\s*--}}/); const textMatch = templateSource.match(/{{!--\s*Text:\s*([\s\S]*?)\s*--}}/); - let subject = subjectMatch ? subjectMatch[1].trim() : 'ССС: Известие'; + let subject = subjectMatch ? subjectMatch[1].trim() : 'ССОМ: Известие'; let textVersion = textMatch ? textMatch[1].trim() : null; // Remove the subject and text annotations from the template source