E-mail Templates

WATCH THE VIDEO

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-mail templates.

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

Authorisation [TRANSACTIONID] has changed

SanaPay__AuthorisationAmountChanged

Basket calculation error

BasketCalculationError

Contact us form

ContactUs

Edited Order Confirmation

EditOrderConfirmation

Edited Quote Confirmation

EditQuoteConfirmation

Error notification

TechnicalAdminErrorNotification

Forgot password

ForgotPassword

Forgot password

ForgotPasswordAdmin

Incoming blog comment notification

IncomingBlogCommentNotification

Invoice payment confirmation

InvoicePaymentConfirmation

Invoice payment confirmation

InvoicePaymentConfirmationForShopManagers

Invoice payment partial success

InvoicePaymentRegistrationFailedForShopManagers

New B2B registration in [SHOPNAME]

NewB2BShopAccountToShopAdmin

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

Pay By Email

SanaPay_PayByEmail

Payment Confirmation

PaymentConfirmation

Payment [TRANSACTIONID] cannot be captured

SanaPay__CaptureFailed

Payment [TRANSACTIONID] cannot be refunded

SanaPay__RefundFailed

Payment [TRANSACTIONID] has been cancelled

SanaPay__PaymentCancelled

Payment authorisation [TRANSACTIONID] cannot be extended

SanaPay__AuthorisationAdjustmentFailed

Payment capture notification

CapturePaymentAdminNotification

Quote Confirmation

QuoteConfirmation

Quote Confirmation

UnprocessedQuoteConfirmation

Refund payment notification

RefundPaymentAdminNotification

Reminder mail

OrderAuthorizationReminderMail

Request Product Information

RequestProductInformation__Email

Return order confirmation

ReturnOrderConfirmation

Set account password

NewSubAccountSetPassword

Welcome to [SHOPNAME]!

NewB2BShopAccount

Welcome to [SHOPNAME]!

NewShopAccount

Welcome to [SHOPNAME]!

NewShopAccountByShopAdmin

Your account approval

ShopAccountApproved

Your password has been changed

ChangePassword

[SHOPNAME] ERP connection available, maintenance mode deactivated

ERPConnectionAvailable

[SHOPNAME] ERP connection not available, maintenance mode activated

ERPConnectionUnavailable

[SHOPNAME] | The task [TASKNAME] has failed

TaskFailureNotification

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, webstore 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 webstore.

ContactUs
EditOrderConfirmation
EditQuoteConfirmation
ForgotPassword
ForgotPasswordAdmin
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
ReturnOrderAdminNotification
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
CapturePaymentAdminNotification
RefundPaymentAdminNotification
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation
NewSubAccountSetPassword
NewShopAccount
NewShopAccountByShopAdmin
ChangePassword 

SHOPNAME

The webstore name.

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

TaskFailureNotification
ERPConnectionAvailable
ERPConnectionUnavailable
EditOrderConfirmation
EditQuoteConfirmation
TechnicalAdminErrorNotification
ForgotPassword
ForgotPasswordAdmin
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
ReturnOrderAdminNotification
RefundPaymentAdminNotification
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
OrderPaymentErrorAdminNotification
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation
NewSubAccountSetPassword
NewShopAccount
NewShopAccountByShopAdmin
ChangePassword
SanaPay_PayByEmail

SHOPEMAIL

The webstore e-mail address.

EditOrderConfirmation
EditQuoteConfirmation
InvoicePaymentConfirmation
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation 
SanaPay_PayByEmail

SHOPPHONE

The webstore 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 

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 
CapturePaymentAdminNotification
RefundPaymentAdminNotification

COMMENTS

The comments of the message sender.

ContactUs 

WEBSITEDOMAIN

The link to the webstore. You can find the additional information about website domains at the end of this article.

EditOrderConfirmation
EditQuoteConfirmation
ForgotPassword
ForgotPasswordAdmin
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
ReturnOrderAdminNotification
OrderAuthorizationApproved
OrderAuthorizationRequest
GuestOrderConfirmation
OrderConfirmation
OrderPayment
UnprocessedOrderConfirmation
OrderAuthorizationDeclined
PaymentConfirmation
QuoteConfirmation
UnprocessedQuoteConfirmation
OrderAuthorizationReminderMail
ReturnOrderConfirmation
NewSubAccountSetPassword
NewShopAccount
NewShopAccountByShopAdmin
ChangePassword 
SanaPay_PayByEmail

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
CapturePaymentAdminNotification
RefundPaymentAdminNotification
QuoteConfirmation
ReturnOrderConfirmation 
SanaPay_PayByEmail

ORDERDETAILS

The sales order details.

EditOrderConfirmation
EditQuoteConfirmation
InvoicePaymentConfirmation
InvoicePaymentConfirmationForShopManagers
InvoicePaymentRegistrationFailedForShopManagers
ReturnOrderAdminNotification
GuestOrderConfirmation
UnprocessedQuoteConfirmation
QuoteConfirmation
PaymentConfirmation
UnprocessedOrderConfirmation
OrderPayment
OrderConfirmation
ReturnOrderConfirmation 
SanaPay_PayByEmail

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 

MESSAGE

The message added by a customer in the webstore.

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
CapturePaymentAdminNotification
RefundPaymentAdminNotification

ERRORDETAILS

The details about why the order payment has failed.

OrderPaymentErrorAdminNotification

SUBACCOUNT_NAME

The name of a sub-account in the Sana webstore.

OrderAuthorizationRequest 

ORDERAUTHORIZER

The name of an authorizer in the Sana webstore.

OrderAuthorizationApproved
OrderAuthorizationDeclined

ORDERAUTHORIZERS

The names of authorizers in the Sana webstore.

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 webstore online or a webstore 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 webstore.

NewShopAccount
NewShopAccountByShopAdmin 

PAYBYLINK

The payment link to pay orders through Sana Pay.

SanaPay_PayByEmail

Adding Webstore URL to the E-mail Template

It is possible to create links to the webstore 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 webstore and will add it to the link automatically. For example, if you want to create the direct link to the home page of your webstore, add the following line to the e-mail template text: [WEBSITEDOMAIN]/home.

NOTE

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