Skip to content

Commit

Permalink
Added semantic versioning. Fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
mbanzon committed Aug 16, 2016
1 parent b844160 commit 1e3b6e0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
Mailgun with Go
===============

[![GoDoc](https://godoc.org/github.com/mailgun/mailgun-go?status.svg)](https://godoc.org/github.com/mailgun/mailgun-go)
[![GoDoc](https://godoc.org/gopkg.in/mailgun/mailgun-go.v1?status.svg)](https://godoc.org/gopkg.in/mailgun/mailgun-go.v1)


Go library for interacting with the [Mailgun](https://mailgun.com/) [API](https://documentation.mailgun.com/api_reference.html).

Download the library

```
go get gopkg.in/mailgun/mailgun-go.v1
```

# Sending mail

You just need your domain, public and private API key from the Mailgun admin interface to get started sending using the
library:

```Go
mg := mailgun.NewMailgun(domain, apiKey, publicApiKey)
message := mailgun.NewMessage("sender@example.com", "Fancy subject!", "Hello from Mailgun Go!", "recipient@example.com")
```

# Testing

Expand Down

0 comments on commit 1e3b6e0

Please sign in to comment.