mailgun

This is a test page for trying mailgun. There is nothing for you to do here for now. 

# Include the Autoloader (see “Libraries” for install instructions)
require ‘vendor/autoload.php’;
use Mailgun\Mailgun;

# First, instantiate the SDK with your API credentials
$mg = Mailgun::create(‘YOUR_API_KEY’);

# Now, compose and send your message.
# $mg->messages()->send($domain, $params);
$mg->messages()->send(‘YOUR_DOMAIN_NAME’, [
‘from’ => ‘Excited User <mailgun@YOUR_DOMAIN_NAME>’,
‘to’ => ‘Baz <YOU@YOUR_DOMAIN_NAME>’,
‘subject’ => ‘Hello’,
‘text’ => ‘Testing some Mailgun awesomness!’
]);