From 398989de61675f5e2cff12b191a395c80cca1204 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Sat, 2 Feb 2019 07:09:51 +0000 Subject: [PATCH] Include API endpoint in README (#557) --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 29a09e2..991a173 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,12 @@ use Mailgun\Mailgun; Here's how to send a message using the SDK: ```php -# First, instantiate the SDK with your API credentials -$mg = Mailgun::create('key-example'); +// First, instantiate the SDK with your API credentials +$mg = Mailgun::create('key-example'); // For US servers +$mg = Mailgun::create('key-example', 'https://api.eu.mailgun.net'); // For EU servers -# Now, compose and send your message. -# $mg->messages()->send($domain, $params); +// Now, compose and send your message. +// $mg->messages()->send($domain, $params); $mg->messages()->send('example.com', [ 'from' => 'bob@example.com', 'to' => 'sally@example.com',