notifications

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptMailBody

func EncryptMailBody(origBody []byte, person *person_api.Person) ([]byte, error)

encryptMailBody retrieves the PGP fingerprint of a recipient from ldap, then queries the gpg server to retrieve the public key and encrypts the body with it.

func SendEmail

func SendEmail(conf *Config, body []byte, person *person_api.Person) error

Types

type Config

type Config struct {
	Email struct {
		Host, From, Cc,
		ReplyTo, Subject string
		Port int
		Auth struct {
			User, Pass string
		}
	}
}

Jump to

Keyboard shortcuts

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