debug-link-2
This commit is contained in:
parent
0ab26c19b6
commit
0aa1c2532b
|
@ -2,6 +2,7 @@ package email
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -27,9 +28,13 @@ func MailgunRest(to string, data map[string]interface{}, subject string, templat
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
|
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
_, id, err := mg.Send(ctx, m)
|
resp, id, err := mg.Send(ctx, m)
|
||||||
|
|
||||||
log.Printf(id)
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Printf("ID: %s Resp: %s\n", id, resp)
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user