Skip to main content

Send Welcome Email

Send welcome email for new subscription.

Example

Send a welcome email for subscription #81.

<?php
header('Content-Type: text/plain');

require '../ChargeOverAPI.php';
require 'config.php';

$API = new ChargeOverAPI($url, $authmode, $username, $password);

// This is the package we're sending out welcome e-mails to
$package_id = 81;

// Save credit card via API
$resp = $API->action('package', $package_id, 'welcome', array( 'message_id' => 19 ));

// Response from the API
print_r($resp);

// Debugging
print("\n\n");
print($API->lastRequest());
print("\n\n");
print($API->lastResponse());