[Bug fix] Unclear error message: Update users email via API (#35581)
For the following bug: - #35145 - @noahtalerman: I didn't test/QA the fix myself.
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ func getFrom(e fleet.Email) (string, error) {
|
||||
|
||||
func (m mailService) SendEmail(ctx context.Context, e fleet.Email) error {
|
||||
if !e.SMTPSettings.SMTPConfigured {
|
||||
return errors.New("email not configured")
|
||||
return errors.New("requires that SMTP or SES is configured in order to send verification email")
|
||||
}
|
||||
msg, err := getMessageBody(e, getFrom)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user