email/

directory
v0.0.0-...-2b80fd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause

README

email

The email service consolidates sending emails into a single service.

API

The client POST's the message in RFC2822 format to /send on this service running only on an internally exposed port.

The server will parse the From: line from the sent message and use that to determine which account to use.

I.e. the format of the POST body will look like this:

From: <alerts@skia.org>
To: some-list@example.com
Subject: Alert
Content-Type: text/html; charset=UTF-8

<html>
<body>
...
</body>
</html>

Client

The emailclient.Client is a replacement for email.Gmail that will only need minor changes to a SendWithMarkup() call. It is almost a drop-in replacement for email.Gmail.SendWithMarkup() with the following changes:

  • The 'from' email address must be supplied.
  • The function no longer returns a message id.

Directories

Path Synopsis
cmd
go
emailclient
Package emailclient is a client for talking to emailservice.
Package emailclient is a client for talking to emailservice.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL