Answers.Body: <p>I'm not sure why changing that would cause the problem you're seeing, but if you have command line access and have <a href="https://github.com/civicrm/cv" rel="nofollow noreferrer">cv</a> installed, you can run this to reset outbound mailing to the default:</p>
  <pre><code>$ cv api4 Setting.revert +s mailing_backend
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-23T17:57:24.003Z
Answers.Text: The provider of the smtp-service insisted on an SSL connection. Apparently, this led to civiCRM wainting too long and thus getting unresponsive.
  
  The solution that worked for me (after resetting like described in this answer) was to add a `ssl://` to the SMTP Server field in "Settings - Outbound Mail".
Answers.UserDisplayName: mplh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-15T22:18:16.010Z
Answers.LastActivityDate: 2023-02-15T22:18:16.010Z
Answers.UserDisplayName: Aidan
Body: <p>I set my outbound email setting to SMTP. After that the server is not responsive anymore. After a long time I get a 504 Error &quot;Gateway Timeout&quot;.</p>
  <p>How can I retract that setting then, as my wordpress is not reachable anymore?</p>
  <p>I can rename the civicrm folder in the WP plugin to deactivate the plugin in WP, but when renaming and activating the plugin again, I again get the 504 error - I guess because it again tries to do something with the SMTP server but it does not respond in time.</p>
  <p>how can I reset the outbound email setting without access to the wordpress frontend?</p>
  <p>cheers</p>
  
Tags: <wordpress><email><smtp>
Title: Setting Outbound Email to SMTP results in 504 Error - how to reset
ThreadText: # Setting Outbound Email to SMTP results in 504 Error - how to reset
  
  (Asked by: username_0 on 2023-02-15)
  
  I set my outbound email setting to SMTP. After that the server is not responsive anymore. After a long time I get a 504 Error "Gateway Timeout".
  
  How can I retract that setting then, as my wordpress is not reachable anymore?
  
  I can rename the civicrm folder in the WP plugin to deactivate the plugin in WP, but when renaming and activating the plugin again, I again get the 504 error - I guess because it again tries to do something with the SMTP server but it does not respond in time.
  
  how can I reset the outbound email setting without access to the wordpress frontend?
  
  cheers
  
  **Tags:** wordpress, email, smtp
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-02-15. Score: 2 | Accepted answer
  
  I'm not sure why changing that would cause the problem you're seeing, but if you have command line access and have [cv](https://github.com/civicrm/cv) installed, you can run this to reset outbound mailing to the default:
  
  ```
  $ cv api4 Setting.revert +s mailing_backend
  
  ```
  
  > **Comments:**
  > **username_0**: The provider of the smtp-service insisted on an SSL connection. Apparently, this led to civiCRM wainting too long and thus getting unresponsive.  The solution that worked for me (after resetting like described in this answer) was to add a `ssl://` to the SMTP Server field in "Settings - Outbound Mail".  
  
  ---
  
  