Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
go get github.com/teamredevs/mailofly-go@latest
package main import ( "fmt" "os" "github.com/teamredevs/mailofly-go" ) func main() { client, err := mailofly.New(mailofly.Options{ APIKey: os.Getenv("MAILOFLY_API_KEY"), }) if err != nil { panic(err) } result, err := client.Emails.Send(map[string]any{ "from": "Acme <onboarding@example.com>", "to": []string{"you@example.com"}, "subject": "Hello from Mailofly", "html": "<p>It works!</p>", }) if err != nil { panic(err) } fmt.Println(result) }
client.MailLogs.List(&mailofly.MailLogsListOptions{Page: 1, PageSize: 10})