c24c19b120
- Add notifications for campaign state change - Add notifications for import state change Related changes. - Add a new 'templates' directory with HTML templates - Move the static campaign template as a .tpl file into it - Change Messenger.Push() to accept multiple recipients - Change exhaustCampaign()'s behaviour to pass metadata to admin emails
10 lines
253 B
Go
10 lines
253 B
Go
package messenger
|
|
|
|
// Messenger is an interface for a generic messaging backend,
|
|
// for instance, e-mail, SMS etc.
|
|
type Messenger interface {
|
|
Name() string
|
|
|
|
Push(fromAddr string, toAddr []string, subject string, message []byte) error
|
|
Flush() error
|
|
}
|