Basic example .

This is a very basic example of how you could email new trade to your mailing list if you have a php web server.

$json = file_get_contents('php://input');

$users = getMyUsers();

foreach($users as $user){
    $subject = "New " . $json->data->symbol . " trade alert";

    $message = "Hey " . $user['first_name'] . ",\r\n\r\n";
    $message .= print_r($json, TRUE);

    // Send email to each user
    mail($user['email_address'], $subject, $message );

Stay in the loop..

Sign up to our newsletter to keep up-to-date.