Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkitzmiller committed Mar 3, 2010
1 parent e60b2c8 commit 11291d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 73 deletions.
71 changes: 0 additions & 71 deletions system/application/config/postmark.php

This file was deleted.

4 changes: 2 additions & 2 deletions system/application/libraries/Postmark.php
Expand Up @@ -278,14 +278,14 @@ function send($from_address = null, $from_name = null, $to_address = null, $to_n
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$return = curl_exec($ch);
log_message('debug', 'JSON: ' . $encoded_data . "\nHeaders: \n\t" . implode("\n\t", $headers) . "\nReturn:\n$return");
log_message('debug', 'POSTMARK JSON: ' . $encoded_data . "\nHeaders: \n\t" . implode("\n\t", $headers) . "\nReturn:\n$return");

if (curl_error($ch) != '') {
show_error(curl_error($ch));
}

$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
log_message('info', 'http code:' . $httpCode);
log_message('debug', 'POSTMARK http code:' . $httpCode);

if (intval($httpCode / 100) != 2) {
$message = json_decode($return)->Message;
Expand Down

0 comments on commit 11291d4

Please sign in to comment.