feat(mail): add Resend API transport

This commit is contained in:
shira committed 2026-10-06 02:38:17 +03:00
1 parent 1aa7a9feaf
commit c85b642d32
13 files changed
+1387 -63

No files matched your search

@@ -0,0 +1,9 @@
package resend
import "time"
// NewSenderWithEndpoint lets tests point the sender at a local fake and fix
// the clock. Production code can only use the documented endpoint.
func NewSenderWithEndpoint(apiKey, from string, timeout time.Duration, endpoint string, now func() time.Time) (*Sender, error) {
return newSender(apiKey, from, timeout, endpoint, now)
}