v0.0.634 add ReplyTo to googleapi.SendMail
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m37s

This commit is contained in:
2026-04-24 13:38:00 +02:00
parent f62e7499ec
commit 80cea13437
8 changed files with 23 additions and 8 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ type MailRef struct {
LabelIDs []string `json:"labelIds"`
}
func (c *client) SendMail(ctx context.Context, from string, recipients []string, cc []string, bcc []string, subject string, body MailBody, attachments []MailAttachment) (MailRef, error) {
func (c *client) SendMail(ctx context.Context, from string, recipients []string, cc []string, bcc []string, replyTo []string, subject string, body MailBody, attachments []MailAttachment) (MailRef, error) {
mm := encodeMimeMail(from, recipients, cc, bcc, subject, body, attachments)
mm := encodeMimeMail(from, recipients, cc, bcc, replyTo, subject, body, attachments)
tok, err := c.oauth.AccessToken()
if err != nil {