Categorygithub.com/ont/go-sendpulse
modulepackage
0.1.0
Repository: https://github.com/ont/go-sendpulse.git
Documentation: pkg.go.dev

# README

go-sendpulse

Golang client for sendpulse api. Currently you can only send emails with it.

This library use golang.org/x/oauth2/clientcredentials for sendpulse's oauth2 endpoint.

Usage example

package main

import (
	"log"

	sp "github.com/ont/go-sendpulse"
)

func main() {
	s := sp.New("... client-id ...", "... client-secret ...")

	email, err := sp.NewEmail(
		sp.Address{"from me", "[email protected]"},
		sp.Address{"to this person", "[email protected]"},
		"test subject",
		"<b>test</b> html",
		"test text",
	)
	log.Println(err)

	err = s.SMTP.Send(email)
	log.Println(err)
}

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author