Answers.Body: <p>I might have found the answer while browsing <a href="https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-extensions" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-extensions</a>.</p>
  
  <blockquote>
    <p>PHP Mcrypt [is] required for SMTP credentials and other credentials in the database. If you add Mcrypt on after running CiviCRM for a while you will need to re-save your passwords to the database. [... php7.2] does not support mcrypt and if mcrypt is not installed the smtp password (if entered) will need to be re-saved once you update your php version to 7.2.</p>
  </blockquote>
  
  <p>I'm reasonably sure that this happened to me multiple times on the same time (that has only been upgraded to php7.2 once) but it certainly feels like a pointer in the right direction.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-02T19:30:30.600Z
Answers.Text: Yes - I’m reasonably sure too! But agree - that seems like at least part of the answer.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-03T09:46:19.967Z
Answers.Text: OK - I will avoid accepting my own answer for now then :)
Answers.UserDisplayName: michaelmcandrew
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-03T12:04:16.900Z
Answers.Text: Checking smtp pathway is working and retyping passwd (if not working to fix) has been in my ‘upgrade’ a site notes for a long time now dating back to before php7.2 :-) We have not seen it recently though (all servers all sites >=php7.2) - must be b/c Alan is using docker now :-)
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-02T15:40:38.887Z
Answers.LastActivityDate: 2019-10-02T15:40:38.887Z
Answers.UserDisplayName: michaelmcandrew
Body: <p>I have a CiviCRM on WordPress site and every now and again - maybe once every few months - without me doing anything obvious, the <strong>SMTP password</strong> gets corrupted in <strong>Settings - Outbound Mail</strong>.</p>
  
  <p>I'm not sure what is causing this to happen. This is the only site I have that it is happening on. Any ideas?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-18T16:13:45.577Z
Comments.Text: We see this quite often after CiviCRM upgrades
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-20T08:25:38.667Z
Comments.Text: Almost an answer :) Do you see this in Drupal too or is it a WordPress thing?
Comments.UserDisplayName: michaelmcandrew
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-20T12:06:03.497Z
Comments.Text: Yes - happening on Drupal sites too :-) It must be something about how CiviCRM encrypts/stores that passwd field - it does not always survive upgrades.
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-02T15:37:24.033Z
Comments.Text: @KarinG-SemperIT - I might have found the answer while browsing https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-extensions
Comments.UserDisplayName: michaelmcandrew
Tags: <wordpress><civimail>
Title: outbound mail smtp password gets corrupted on wordpress
ThreadText: # outbound mail smtp password gets corrupted on wordpress
  
  (Asked by: username_0 on 2019-09-18)
  
  I have a CiviCRM on WordPress site and every now and again - maybe once every few months - without me doing anything obvious, the **SMTP password** gets corrupted in **Settings - Outbound Mail**.
  
  I'm not sure what is causing this to happen. This is the only site I have that it is happening on. Any ideas?
  
  **Tags:** wordpress, civimail
  
  > **Comments:**
  > **username_1**: We see this quite often after CiviCRM upgrades  
  > **username_0**: Almost an answer :) Do you see this in Drupal too or is it a WordPress thing?  
  > **username_1**: Yes - happening on Drupal sites too :-) It must be something about how CiviCRM encrypts/stores that passwd field - it does not always survive upgrades.  
  > **username_0**: @username_1 - I might have found the answer while browsing https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-extensions  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-02. Score: 1
  
  I might have found the answer while browsing <https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-extensions>.
  
  > PHP Mcrypt [is] required for SMTP credentials and other credentials in the database. If you add Mcrypt on after running CiviCRM for a while you will need to re-save your passwords to the database. [... php7.2] does not support mcrypt and if mcrypt is not installed the smtp password (if entered) will need to be re-saved once you update your php version to 7.2.
  
  I'm reasonably sure that this happened to me multiple times on the same time (that has only been upgraded to php7.2 once) but it certainly feels like a pointer in the right direction.
  
  > **Comments:**
  > **username_1**: Yes - I’m reasonably sure too! But agree - that seems like at least part of the answer.  
  > **username_0**: OK - I will avoid accepting my own answer for now then :)  
  > **username_1**: Checking smtp pathway is working and retyping passwd (if not working to fix) has been in my ‘upgrade’ a site notes for a long time now dating back to before php7.2 :-) We have not seen it recently though (all servers all sites >=php7.2) - must be b/c Alan is using docker now :-)  
  
  ---
  
  