コード例 #1
0
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)
}
コード例 #2
0
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)
}