Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
mailgun
✓ github.com/mailgun/mailgun-go/v3
Sends an email using the Mailgun API.
package main
import (
"context"
"fmt"
"github.com/mailgun/mailgun-go/v3"
)
func main() {
mg := mailgun.NewMailgun("your-domain.com", "your-api-key")
msg := mg.NewMessage("sender@example.com", "Hello", "Body", "recipient@example.com")
_, id, _ := mg.Send(context.Background(), msg)
fmt.Println("Message ID:", id)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
3.6.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.