try to receive attachments

This commit is contained in:
Aine
2022-08-22 18:43:12 +03:00
parent abb6c027bf
commit 69f20e5670
6 changed files with 86 additions and 11 deletions

View File

@@ -3,11 +3,12 @@ package smtp
import (
"context"
"gitlab.com/etke.cc/postmoogle/utils"
"maunium.net/go/mautrix/id"
)
// Client interface to send emails
type Client interface {
GetMappings(context.Context) (map[string]id.RoomID, error)
Send(from, mailbox, subject, body string) error
Send(ctx context.Context, from, mailbox, subject, body string, files []*utils.File) error
}