jetta,
Heres the code in the USPS mod concerning emailing the server response.
$body = '';
$http = new httpClient();
if ($http->Connect('production.shippingapis.com', 80))
{
$http->addHeader('Host', 'production.shippingapis.com');
$http->addHeader('User-Agent', 'osCommerce');
$http->addHeader('Connection', 'Close');
if ($http->Get('/shippingapi.dll?' . $request)) $body = preg_replace(array('/\<sup\>\®\<\/sup\>/', '/\<sup\>\™\<\/sup\>/', '/\" /', '/\",/', '/\"<br>/', '/<br>/'), array('RM', 'TM', '",', '" ', '"<br>', 'BREAK'), htmlspecialchars_decode($http->getBody()));
mail(STORE_OWNER_EMAIL_ADDRESS, STORE_OWNER, $body);
$http->Disconnect();
return json_decode(json_encode(simplexml_load_string($body)),TRUE);
}
else return false;
}
That should have sent the response from the server if it was connecting correctly in my opinion. Is there another mod i should have installed before installing USPS Rate V4 Intl Rate V2 - v.1.7_1 ? What would you suggest from here?