Post-Purchase Email Configuration

Calling the url
Let’s consider this following URL (replace %shortname% with your own shortname) and the sku with a valid SKU.

You have two options to call this URL:

1. PIXEL CALL (RECOMMENDED)
Integrate an img tag on your checkout page (after the user paid the product)
 
<img src="http://%shortname%.reziew.com/track?lang=fr&[email protected]&name=UserName&sku[]=639-3056565163107&sku[]=3232" alt="" width="0" height="0"/>
 
2. CURL
Use CURL if you want to send emails for sales that occurred in the past or if you want to only send the solicitation to a subset of your users.
 
<?php
//Build your url with dynamic parameters
$url = "http://%shortname%.reziew.com/track?sku[]=639-3056565163107&sku[]=3232&lang=en&[email protected]";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_exec($ch);
curl_close($ch);
?>
 
Note:
There is an optional parameter “execute_at” you can pass to define when the email should be sent. The parameter accepts a date like 2012-04-18 (Y-m-d) or a datetime 2012-04-18 20:14:60 (Y-m-d H:i:s) or a macro like “now”. If not defined, the execute time will be computed based on your settings.