E-Commerce Configuration Guide : Setting up E-Commerce e-mail : Setting up the E-Commerce pages to send an e-mail in the event that ProtoBase goes offline
 
Setting up the E-Commerce pages to send an e-mail in the event that ProtoBase goes offline
 
The E-Commerce pages can send a credit card e-mail alert to the e-mail address specified in the site config file setting Site Admin Panel > Guest Related Settings > AdminEmail value = someone@yourcompany.com. This e-mail is sent if ProtoBase goes offline or if ProtoBase is unable to communicate with the bank during a ww.dll processsale call. In both of these cases, online sales charged to credit cards do not occur until the issue is resolved, so this e-mail notifies the appropriate person of the problem.
The credit card e-mail alert relies on a template that needs to be specified in the following site config file setting: Site Admin Panel > Guest Related Settings > CCTimeoutTemplate value = template/CCTimeout.txt. The template CCTimeout.txt can be a simple text file located in the template folder with your other e-mail templates. There are two fields that can be populated when the e-mail gets generated and sent: {{datetime}} and {{wwsale_id}}. {{datetime}} is the date and time when the problem occurred and {{wwsale_id}} is the wwsale_id of the sale affected by the problem.