Log In    |    Knowledge Base    |    4D Home
Tech Tip: Customizing the order email sent to the merchant
PRODUCT: 4D Business Kit | VERSION: 1.x | PLATFORM: Mac & Win
Published On: August 12, 2003

Version 1.x and Up

The email that the merchant receives whenever an order is placed, is the default order email sent out by 4D Business Kit to the email address specified in the Store / Orders panel. This email is not customizable. However, it is easy to create a customizable order email to send to the merchant. You can use the same 4DBK code that you have been using all along to create either an html or text file.


Using the 4DBKMail tag, this file can be sent to the merchant as an html page or txt formatted message. For example:


The same idea works quite well for sending a customized order confirmation email to the customer. The only difference would be to format the shopping cart to look more presentable and set the "to" parameter for the 4DBKMail command to the dynamic 4DBKField/CusEMail field instead of a static email address. For example:

<!--#4DBKMail/,4DBKField/CusEMail,Your Order,page_to_send,format_of_file-->