"Broke something in the last commit, fixed it here"

This commit is contained in:
Travis Swientek 2013-07-22 22:24:08 -07:00
parent c09e6fd579
commit 425cdc5863
4 changed files with 5 additions and 17 deletions

View File

@ -4,7 +4,7 @@
namespace Mailgun\Common; namespace Mailgun\Common;
require_once 'Globals.php'; require dirname(__DIR__) . '/globals.php';
use Guzzle\Http\Client as Guzzler; use Guzzle\Http\Client as Guzzler;
use Mailgun\Exceptions\NoDomainsConfigured; use Mailgun\Exceptions\NoDomainsConfigured;

View File

@ -2,7 +2,7 @@
namespace Mailgun\Common; namespace Mailgun\Common;
require_once 'globals.php'; require dirname(__DIR__) . '/globals.php';
use Guzzle\Http\Client as Guzzler; use Guzzle\Http\Client as Guzzler;

View File

@ -1,12 +0,0 @@
<?PHP
const API_VERSION = "v2";
const API_ENDPOINT = "api.mailgun.net";
const API_USER = "api";
const SDK_VERSION = "0.1";
const SDK_USER_AGENT = "mailgun-sdk-php";
?>

View File

@ -1,7 +1,7 @@
<?php <?php
//require 'vendor/autoload.php'; //require 'vendor/autoload.php';
require dirname(__DIR__) . '/vendor/autoload.php'; require 'vendor/autoload.php';
use Mailgun\Common\Client; use Mailgun\Common\Client;
use Mailgun\Common\Message; use Mailgun\Common\Message;
@ -12,9 +12,9 @@ use Mailgun\Exceptions\HTTPError;
$client = new Client("key-ca6d168e492611df8307001d60d24a9c-0b27e", "aawdawdad.ninomail.com", true); $client = new Client("key-ca6d168e492611df8307001d60d24a9c-0b27e", "aawdawdad.ninomail.com", true);
$message = new Message(array('from' =>"travis@aawdawdad.ninomail.com", 'to' => "travis@tswientek.com", "subject" => "subject here", "text" => "hello", "o:testmode" =>true)); //$message = new Message();
$response = $client->sendMessage($message->getMessage()); $response = $client->sendMessage(array('from' =>"travis@aawdawdad.ninomail.com", 'to' => "travis@tswientek.com", "subject" => "subject here", "text" => "hello", "o:testmode" =>true));
echo $response->getBody(); echo $response->getBody();