Skip to content

Commit

Permalink
Include API endpoint in README (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGarciaCat authored and Nyholm committed Feb 2, 2019
1 parent c51c6b1 commit 398989d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -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',
Expand Down

0 comments on commit 398989d

Please sign in to comment.