diff --git a/app/Livewire/Notifications/Email.php b/app/Livewire/Notifications/Email.php index 94b5e17c2..fcedf1305 100644 --- a/app/Livewire/Notifications/Email.php +++ b/app/Livewire/Notifications/Email.php @@ -138,6 +138,13 @@ public function syncData(bool $toModel = false) public function sendTestEmail() { try { + $this->validate([ + 'testEmailAddress' => 'required|email', + ], [ + 'testEmailAddress.required' => 'Test email address is required.', + 'testEmailAddress.email' => 'Please enter a valid email address.', + ]); + $executed = RateLimiter::attempt( 'test-email:'.$this->team->id, $perMinute = 0,