move email sending to b.runSend()

This commit is contained in:
Aine
2022-09-06 22:43:04 +03:00
parent db135c0cb1
commit 4d01579505
2 changed files with 19 additions and 1 deletions

View File

@@ -121,6 +121,7 @@ func (b *Bot) getParentEmail(evt *event.Event) (string, string, string) {
}
// Send2Email sends message to email
// TODO rewrite to thread replies only
func (b *Bot) Send2Email(ctx context.Context, to, subject, body string) error {
var inReplyTo string
evt := eventFromContext(ctx)