diff --git a/core/modules/contact/src/MessageForm.php b/core/modules/contact/src/MessageForm.php
index 46bb5d9..3f01b33 100755
--- a/core/modules/contact/src/MessageForm.php
+++ b/core/modules/contact/src/MessageForm.php
@@ -210,6 +210,10 @@ public function validateForm(array &$form, FormStateInterface $form_state) {
   public function save(array $form, FormStateInterface $form_state) {
     $message = $this->entity;
     $user = $this->currentUser();
+    // Save the message. In core this is a no-op but should contrib wish to
+    // implement message storage, this will make the task of swapping in a real
+    // storage controller straight-forward.
+    $message->save();
     $this->mailHandler->sendMailMessages($message, $user);

     $this->flood->register('contact', $this->config('contact.settings')->get('flood.interval'));
@@ -223,10 +227,7 @@ public function save(array $form, FormStateInterface $form_state) {
     else {
       $form_state->setRedirect('<front>');
     }
-    // Save the message. In core this is a no-op but should contrib wish to
-    // implement message storage, this will make the task of swapping in a real
-    // storage controller straight-forward.
-    $message->save();
   }

 }
