Skip to content

wizzldev/mailer

Repository files navigation

Mailer

Mailer is a simple email sending microservice and library built with Go.

Installation

To install and start Mailer, run the following commands:

git clone https://github.com/wizzldev/mailer.git

# Change to the Mailer directory and start the service
cd mailer
make run

Client

To use the Mailer client, run the following command:

go get github.com/wizzldev/mailer/client

Usage

To send an email using the Mailer client, run the following command:

package main

import (
	"fmt"
	mailer "github.com/wizzldev/mailer/client"
)

func main() {
	client := mailer.NewClient("http://localhost:3000")
	err := client.SendText("[email protected]", "Hello", "Hello, world!")
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println("Email sent!")
}

About

Wizzl's open-source mailer system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages