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
    		}
    	}
    }