I've noticed when testing the SMTP transport that it removes your password if you change any of the other settings.
When you return to the Transport tab after configuring it with a password, the password field has this message below it:
A password required by the SMTP server. The currently set password is hidden for security reasons.
However, if you make a change then click Save, the test fails. When you go back to the Transport tab, this message has changed:
A password required by the SMTP server (leave blank if not required)
It appears that the password is removed when you click Save (or, more correctly, set to the value of the field, which was left empty).
The only workaround is to supply the password every time you make a change.
Suggested fix options:
- Change functionality so the existing password is not removed when changing and saving Transport settings.
- Change the message to explain that you need to supply the SMTP password again when saving any changes.
My preference would be #1.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2922795-5.patch | 2.22 KB | webflo |
| #3 | 2922795-3.patch | 2.08 KB | webflo |
Comments
Comment #2
millionleaves commentedHere's a fix. In this file:
swiftmailer/src/form/SettingsForm.phpReplace this line (243):
with the following code:
(edit - modified replace the current password if a new one has been supplied).
Comment #3
webflo commentedComment #5
webflo commentedComment #6
millionleaves commentedThanks for the patch.
I applied it to the latest dev version and configured it to connect to a SMTP server.
After saving the initial changes, I then made further changes to the configuration. The password field changed to reflect the fact that there was a saved password and added the option to delete the saved password. I left the field untouched when saving my other configuration, and the password remained in place.
Comment #8
webflo commentedThanks for the review.