feat(mail): add Resend API transport
This commit is contained in:
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)
|
||||
}
|
||||
Reference in new issue
Block a user