sendMessage(array('from' =>"travis@aawdawdad.ninomail.com", 'to' => "travis@tswientek.com", "subject" => "subject here", "text" => "hello", "o:testmode" =>true)); echo $response->getBody(); //$message = new Mailgun\Common\Message($client); /* $message = new Mailgun\Common\BatchMessage($client, true); $message->setFromAddress("travis@tswientek.com", "From Name"); $message->setSubject("%recipient.first%, This is the subject of the message!"); $message->setTextBody("%recipient.first%, This is the text body of the message!"); $message->setHtmlBody("%recipient.first%, %recipient.my.id% This is the html body of the message!"); $message->addAttachment("@GitHub_Logo.png"); $message->addAttachment("@batman-logo-big.gif"); $message->setTestMode("yes"); $message->setDkim("yes"); //$message->setDeliveryTime("January 15, 2014 8:00AM", "CST"); $message->setOpenTracking("yes"); $message->setClickTracking("yes"); $message->addCustomOption("o:myoption", "true"); $message->addCampaignId("askldf"); $message->addCustomData("mycustomdata", array("name"=> "travis")); //echo $message->sendMessage(); //$message->addBatchRecipient("travis@tswientek.com", array("first" => "Travis", "last" => "Swientek", "my.id" => "ABC12345")); for($i = 0; $i<5; $i++){ $message->addBatchRecipient("travis@".$i."test.com", array("first" => "$i - First", "last" => "$i - Last", "my.id" => "ABC12345")); } $message->endBatchMessage(); //echo $client->sendMessage($message->getMessage())->getBody(); */ ?>