Setup

Sana Commerce 9.3
Your connector

E-mails


 
There are different e-mail templates which are used in Sana for system e-mails, like order confirmation, payment confirmation, forgot password, etc.
 
To see e-mail templates, open Sana Admin and click: Setup > E-mails.
 
 
You can change the content of e-mail templates. It is multi-lingual. When you install a language pack, the e-mail templates will be available in the installed language. You can sort the e-mail templates by subject or template identifier. 
 
Subject Template Identifier
[SHOPNAME] - Check out this product TellaFriend
[SHOPNAME] | The task [TASKNAME] has failed TaskFailureNotification
[SHOPNAME] ERP connection available, maintenance mode deactivated ERPConnectionAvailable
[SHOPNAME] ERP connection not available, maintenance mode activated ERPConnectionUnavailable
Contact us form ContactUs
Edited Order Confirmation EditOrderConfirmation
Edited Quote Confirmation EditQuoteConfirmation
Error notification TechnicalAdminErrorNotification
Forgot password ForgotPassword
Forgot password ForgotPasswordAdmin
Invoice payment confirmation InvoicePaymentConfirmation
Invoice payment confirmation InvoicePaymentConfirmationForShopManagers
Invoice payment partial success InvoicePaymentRegistrationFailedForShopManagers
New return order request ReturnOrderAdminNotification
Order Approved OrderAuthorizationApproved
Order Authorization Request OrderAuthorizationRequest
Order Confirmation GuestOrderConfirmation
Order Confirmation OrderConfirmation
Order Confirmation OrderPayment
Order Confirmation UnprocessedOrderConfirmation
Order Declined OrderAuthorizationDeclined
Order payment error OrderPaymentErrorAdminNotification
Payment Confirmation PaymentConfirmation
Quote Confirmation QuoteConfirmation
Quote Confirmation UnprocessedQuoteConfirmation
Reminder mail OrderAuthorizationReminderMail
Return order confirmation ReturnOrderConfirmation
Set account password NewSubAccountSetPassword
Welcome to [SHOPNAME]! NewShopAccount
Welcome to [SHOPNAME]! NewShopAccountByShopAdmin
Your password has been changed ChangePassword
 
You can see replacement tags in the e-mail templates. They can be recognized by the brackets in the text of the e-mail template, for example [ORDERNUMBER]. These tags are automatically replaced by the external values when the e-mail is sent, for example order details, customer name, web store e-mail, etc. If you need to change the content of the e-mail template, do not change or translate the replacement tags.
 
 
The table below provides the list of all replacement tags which are used in the e-mail templates of Sana. You can also see in which e-mail templates different replacement tags are used.
 
Name Description E-mail templates (by ID)
NAME The name of a customer in the Sana web store. ContactUs
EditOrderConfirmation
EditQuoteConfirmation
ForgotPassword
ForgotPasswordAdmin
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
ReturnOrderAdminNotification
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation
NewSubAccountSetPassword
NewShopAccount
NewShopAccountByShopAdmin
ChangePassword 
SHOPNAME The web store name.

Only the SHOPNAME variable can be used in the e-mail template subject.

TellaFriend
TaskFailureNotification
ERPConnectionAvailable
ERPConnectionUnavailable
EditOrderConfirmation
EditQuoteConfirmation
TechnicalAdminErrorNotification
ForgotPassword
ForgotPasswordAdmin
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
ReturnOrderAdminNotification
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
OrderPaymentErrorAdminNotification
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation
NewSubAccountSetPassword
NewShopAccount
NewShopAccountByShopAdmin
ChangePassword
SHOPEMAIL The web store e-mail address. EditOrderConfirmation
EditQuoteConfirmation
InvoicePaymentConfirmation
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation 
SHOPPHONE The web store phone number. EditOrderConfirmation
EditQuoteConfirmation
InvoicePaymentConfirmation
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation 
URL The link to reset the shop account password. ForgotPassword
ForgotPasswordAdmin
NewSubAccountSetPassword
NewShopAccountByShopAdmin 
USERNAME The name of the web store customer or visitor (not registered user). TellaFriend 
USEREMAIL The e-mail of the web store customer. TellaFriend 
COMPANYNAME The company name. ContactUs 
EMAILADDRESS The e-mail of the company. ContactUs 
PHONE The phone of the message sender. ContactUs 
CUSTOMERNUMBER The number of a customer. InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers 
COMMENTS The comments of the message sender. ContactUs 
WEBSITEDOMAIN The link to the web store. You can find the additional information about website domains at the end of this article. TellaFriend
EditOrderConfirmation
EditQuoteConfirmation
ForgotPassword
ForgotPasswordAdmin
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
ReturnOrderAdminNotification
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation
NewSubAccountSetPassword
NewShopAccount
NewShopAccountByShopAdmin
ChangePassword 
ORDERADDRESS The billing and shipping addresses of the sales order. EditOrderConfirmation
EditQuoteConfirmation
ReturnOrderAdminNotification
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
ReturnOrderConfirmation 
ORDERNUMBER The sales order ID. EditOrderConfirmation
EditQuoteConfirmation
ReturnOrderAdminNotification
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderAuthorizationDeclined
OrderPaymentErrorAdminNotification
PaymentConfirmation
QuoteConfirmation
ReturnOrderConfirmation 
ORDERDETAILS The sales order details. EditOrderConfirmation
EditQuoteConfirmation
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
ReturnOrderAdminNotification
GuestOrderConfirmation
UnprocessedQuoteConfirmation
QuoteConfirmation
PaymentConfirmation
UnprocessedOrderConfirmation
OrderPayment
OrderConfirmation
ReturnOrderConfirmation 
ADDITIONAL_ORDER_INFORMATION The reference number, comments and the requested delivery date of the sales order. EditOrderConfirmation
EditQuoteConfirmation
InvoicePaymentConfirmation
ReturnOrderAdminNotification
GuestOrderConfirmation
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
ReturnOrderConfirmation 
ATTACHMENTS The links to the return order attachments. ReturnOrderAdminNotification
ReturnOrderConfirmation 
PRODUCTTITLE The product title. It consists of two variables: the PRODUCTTITLE itself and the PRODUCTURL.

Separate variables are visible only in the HTML view.
TellaFriend 
PRODUCTURL The direct link to the target product.

This variable is only visible in the HTML view and is the part of the PRODUCTTITLE variable.
TellaFriend 
MESSAGE The message added by a customer in the web store. TellaFriend
TechnicalAdminErrorNotification 
PAYMENT_SHIPPING_INFORMATION Order shipping and payment information. EditOrderConfirmation
EditQuoteConfirmation
GuestOrderConfirmation
OrderConfirmation 
PAYMENTTRANSACTIONID The ID of a payment transaction. InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers 
TRANSACTIONID The ID of a payment transaction. OrderPaymentErrorAdminNotification
ERRORDETAILS The details about why the order payment has failed. OrderPaymentErrorAdminNotification
SUBACCOUNT_NAME The name of a subaccount in the Sana web store. OrderAuthorizationRequest 
ORDERAUTHORIZER The name of an authorizer in the Sana web store.

OrderAuthorizationApproved
OrderAuthorizationDeclined

ORDERAUTHORIZERS The names of authorizers in the Sana web store. EditOrderConfirmation
EditQuoteConfirmation
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
GuestOrderConfirmation
OrderConfirmation 
AUTHORIZATION_FEEDBACK The comment of an authorizer explaining why the order was declined. OrderAuthorizationDeclined 
DAYS The number of days that have passed since the last order was created and not authorized (approved or declined). OrderAuthorizationReminderMail 
TASKNAME The name of a scheduled task that failed. TaskFailureNotification 
TIMESTAMP Time when the scheduled task failed. TaskFailureNotification 
EXCEPTION The error that is a reason for the scheduled task failure. TaskFailureNotification 
EXCEPTIONDETAILS The error details of the failed scheduled task. TaskFailureNotification 
SHOPACCOUNTEMAIL The e-mail address the customer used to register in the web store online or a web store administrator to create a shop account for a B2B customer directly in Sana Admin. The e-mail is used by the customer to log in to the web store. NewShopAccount
NewShopAccountByShopAdmin 
 
Adding web store URL to the e-mail template
 
It is possible to create links to the web store in the e-mail template. To do this, just add the link to the page without specifying the domain name. Add [WEBSITEDOMAIN] variable instead of it, thus Sana Admin will take the domain of your web store and will add it to the link automatically. For example, if you want to create the direct link to the home page of your web store, add the following line to the e-mail template text: [WEBSITEDOMAIN]/home.
 
 NOTE

The web store information which is used in the e-mails sent from the Sana web store (store name, store phone number, store e-mail address) can be changed in Sana Admin: Setup > Basics > Store information.