Notify Customer with Email

Top  Previous  Next

We want to notify the customer of the order when there is a change in the status of the order. To implement this we need to use the "Mailer" component.

We are still in the "OrderDetails" Page.

Steps:

Open the "Common Definitions" page, place a "mor > Mailer > SMTPConnection" element in it and configure it by using the values of a valid SMTP account of your own.

 

SMTPConnection

 

These SMTP settings will be used when sending notification mails to the customers when the statuses of their orders are changed.

SendTextMailProcess

 
"TextMailProcess" element of the "Mailer" component is already existing in the "OrderBlock" and configured as follows.

 

[-] Mail


SMTP Connection

SMTPConnection1

 

To

@vof(EMAIL)

 

CC

 

 

BCC

 

 

Subject

The status changed for your order "@vof(ID)"

 

Message

Dear @vof(CUSTNAME),

 

Please be informed that the status of your order with number "@vof(ID)" is changed to "@vof(STATUS)".

 

Sincerely,

Super Store.

The process will run if the value of the "STATUS" ComboBox is changed and it will send a mail to the customer's e-mail address. Notice that @vof() definitions can also be used in all the properties of the TextMailProcess.

This process and "ChangeStatusProcess" are configured in the process list of the "ChangeStatus" command.
 

Order Tracking is Complete

The Order Tracking functionality of the web application is now fully complete. Press "Build and Test"[Shift+F9] on the Basic Toolbar and check the result.

 

camera2

Watch how it's done