func main() { if len(os.Args) < 3 { println("manual_test <to address> <key>") return } to := os.Args[1] key := os.Args[2] mailgunMTAProvider := mailgunprovider.New(utilities.GetLogger("MailGun"), mailgunprovider.BitLabConfig(key), test.NewMockFailureStrategy()) test.ManuallyVerifyEmailSend(mailgunMTAProvider, to) }
func main() { if len(os.Args) < 3 { println("manual_test <to address> <key>") return } to := os.Args[1] key := os.Args[2] config := sendgridprovider.BitLabConfig(key) sendgridMTAProvider := sendgridprovider.New(utilities.GetLogger("SendGrid"), config, test.NewMockFailureStrategy()) test.ManuallyVerifyEmailSend(sendgridMTAProvider, to) }