> For the complete documentation index, see [llms.txt](https://xmlking.gitbook.io/micro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xmlking.gitbook.io/micro/develop/modules/services/emailer.md).

# Emailer

This is the Emailer service

Showcase

1. Async service

## Configuration

* FQDN: mkit.service.emailer
* Type: service
* Alias: emailer

## Usage

A Makefile is included for convenience

Build the binary

```bash
make build TARGET=emailer TYPE=service VERSION=v0.1.1
```

Run the service

```bash
make run-emailer
make run-emailer ARGS="--server_address=:8082"
# or
go run service/emailer/main.go service/emailer/plugin.go
```

Build a docker image

```bash
make docker TARGET=emailer TYPE=service VERSION=v0.1.1
```

Test the service

```bash
micro publish mkit.service.emailer  '{ "to" : "sumo@demo.com", "from": "demo@sumo.com", "subject": "sub", "body": "mybody"  }'
```
