smtpclient

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

TODO Replace go asset embedding once in 1.16

Index

Constants

View Source
const HTMLTemplate = `` /* 18079-byte string literal not displayed */
View Source
const LogoVocBase64 = `` /* 19951-byte string literal not displayed */
View Source
const Subject = `Participa en {{.OrgName}} con Vocdoni`
View Source
const TextTemplate = `` /* 1270-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTP

type SMTP struct {
	// contains filtered or unexported fields
}

SMTP struct maintains the SMTP config and conncection objects

func New

func New(smtpc *config.SMTP) *SMTP

New creates a new SMTP object initialized with the user config

func (*SMTP) ClosePool

func (s *SMTP) ClosePool()

ClosePool closes the SMTP pool

func (*SMTP) SendMail

func (s *SMTP) SendMail(email *email.Email, usePool bool) error

SendMail Sends one email over StartTLS (without pool)

func (s *SMTP) SendValidationLink(member *types.Member, entity *types.Entity, usePool bool) error

SendValidationLink sends a unique validation link to the member m

func (*SMTP) StartPool

func (s *SMTP) StartPool() error

StartPool ooens a new STMP pool using the config values

Jump to

Keyboard shortcuts

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