Outbound email password not saved correctly for long passwords like API keys #10506
Labels
Area: Emails:Config
Issues & PRs related to email configuration
Area: Emails
Issues & PRs related to all things regarding emails & email module
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little impact
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
SMTP password for personal outgoing email is not being saved correctly if it is a long password like an API key. Adding debug steps to include/OutboundEmail/OutboundEmail.php seems to indicate that the stored encrypted password is being truncated to 100 chars, causing an incorrect password to be used for authenticating with the SMTP server
Version 7.14.5
Sugar Version 6.5.25 (Build 344)
Possible Fix
Increase the field length of outbound_email.mail_smtppass to a much larger value to allow for the encryption of API keys provided by SMTP providers
Steps to Reproduce the Issue
Context
No response
Version
7.14.5
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
MySQL, PHP8.2
Operating System and Version
Ubuntu
The text was updated successfully, but these errors were encountered: