diff --git a/casdoorsdk/email_test.go b/casdoorsdk/email_test.go index b956a2b..2c4e1ff 100644 --- a/casdoorsdk/email_test.go +++ b/casdoorsdk/email_test.go @@ -35,20 +35,3 @@ func TestEmail(t *testing.T) { } } } - -func TestEmailByProvider(t *testing.T) { - InitConfig(TestCasdoorEndpoint, TestClientId, TestClientSecret, TestJwtPublicKey, TestCasdoorOrganization, TestCasdoorApplication) - - email := &emailForm{ - Title: "casbin", - Content: "casdoor-go-sdk website test", - Sender: "admin", - Receivers: []string{"TestSmtpServer"}, - } - err := SendEmailByProvider(email.Title, email.Content, email.Sender, "provider_casbin_email", email.Receivers...) - if err != nil { - if !strings.Contains(err.Error(), "535 Error") { - t.Fatalf("Failed to send Email: %v", err) - } - } -}