mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 04:26:02 +03:00
"Broke something in the last commit, fixed it here"
This commit is contained in:
parent
c09e6fd579
commit
425cdc5863
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Mailgun\Common;
|
||||
|
||||
require_once 'Globals.php';
|
||||
require dirname(__DIR__) . '/globals.php';
|
||||
|
||||
use Guzzle\Http\Client as Guzzler;
|
||||
use Mailgun\Exceptions\NoDomainsConfigured;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Mailgun\Common;
|
||||
|
||||
require_once 'globals.php';
|
||||
require dirname(__DIR__) . '/globals.php';
|
||||
|
||||
use Guzzle\Http\Client as Guzzler;
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
||||
|
||||
?>
|
6
test.php
6
test.php
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
//require 'vendor/autoload.php';
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
use Mailgun\Common\Client;
|
||||
use Mailgun\Common\Message;
|
||||
@ -12,9 +12,9 @@ use Mailgun\Exceptions\HTTPError;
|
||||
|
||||
$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();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user