Files
goext/googleapi/service.go
T
Mikescher 80cea13437
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m37s
v0.0.634 add ReplyTo to googleapi.SendMail
2026-04-24 13:38:00 +02:00

23 lines
454 B
Go

package googleapi
import (
"context"
"net/http"
)
type GoogleClient interface {
SendMail(ctx context.Context, from string, recipients []string, cc []string, bcc []string, replyTo []string, subject string, body MailBody, attachments []MailAttachment) (MailRef, error)
}
type client struct {
oauth GoogleOAuth
http http.Client
}
func NewGoogleClient(oauth GoogleOAuth) GoogleClient {
return &client{
oauth: oauth,
http: http.Client{},
}
}