account data only; integrate smtp server; logging

This commit is contained in:
Aine
2022-08-21 23:00:20 +03:00
parent c4b7a16e21
commit c746c91dbb
9 changed files with 157 additions and 99 deletions

13
smtp/smtp.go Normal file
View File

@@ -0,0 +1,13 @@
package smtp
import (
"context"
"maunium.net/go/mautrix/id"
)
// Client interface to send emails
type Client interface {
GetMappings(context.Context) (map[string]id.RoomID, error)
Send(from, to, subject, body string) error
}