From afef8b4c8812a40d92fe1ac851e060c7fd640f29 Mon Sep 17 00:00:00 2001 From: Travis Swientek Date: Tue, 13 Aug 2013 14:35:22 -0700 Subject: [PATCH] Adjusted README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2cf4361..0174302 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,10 @@ $mg = new Mailgun("key-example"); $domain = "example.com"; # Now, compose and send your message. -$mg->post('{$domain}/messages', array('from' => 'bob@example.com', - 'to' => 'sally@example.com', - 'subject' => 'The PHP SDK is awesome!', - 'text' => 'It is so simple to send a message.')); +$mg->sendMessage($domain, array('from' => 'bob@example.com', + 'to' => 'sally@example.com', + 'subject' => 'The PHP SDK is awesome!', + 'text' => 'It is so simple to send a message.')); ``` Or obtain the last 25 log items: