[CORL-943] Send test emails (#2882)

* add smtp test email

* disable button if email not enabled

* add error handling

* internationalize strings

* sort imports
This commit is contained in:
Tessa Thornton
2020-03-27 11:46:53 -04:00
committed by GitHub
parent 7fd524cd6a
commit 4645ed4cd7
11 changed files with 164 additions and 1 deletions
@@ -6244,6 +6244,14 @@ type UpdateSitePayload {
site: Site!
}
input TestSMTPInput {
clientMutationId: String!
}
type TestSMTPPayload {
clientMutationId: String!
}
##################
## Mutation
##################
@@ -6713,6 +6721,12 @@ type Mutation {
"""
removeStoryExpert(input: RemoveStoryExpertInput!): RemoveStoryExpertPayload!
@auth(roles: [ADMIN, MODERATOR])
"""
testSMTP sends a test email.
"""
testSMTP(input: TestSMTPInput!): TestSMTPPayload!
@auth(roles: [ADMIN, MODERATOR])
}
##################