Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I noticed that I lost email whenever my first smtp server is down.
The second (backup) smtp server is never contacted nor taken into consideration.
Digging in the problem I found that the bundled phpmailer (modified from 5.1 version) in SmtpConnect() loops through the servers but exits the loops (raising an exception) as soon as it fails the first server.
So it simply ignores multiple servers.
Comment | File | Size | Author |
---|---|---|---|
#15 | smtp-n2226483-15.patch | 1.37 KB | DamienMcKenna |
#14 | Screen shot 2016-01-30 at 10.49.08 PM.png | 35.89 KB | Anonymous (not verified) |
#7 | smtp-n2226483-7.patch | 1.31 KB | DamienMcKenna |
|
Comments
Comment #1
bago CreditAttribution: bago commentedA firtst attempt at fixing the issue and start using the backup server when the first server is not available.
Comment #2
bago CreditAttribution: bago commentedComment #4
bago CreditAttribution: bago commentedAnother attempt formatting the patch
Comment #5
bago CreditAttribution: bago commentedComment #7
DamienMcKennaRerolled.
Comment #9
DamienMcKennaThe tests failed because of a bug in DrupalCI: #2645590: Ensure that simpletest job doesn't "fail" testing if no tests are present
Comment #11
DamienMcKennaThe tests pass, so marking this "needs review".
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer and commentedRetesting.
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer and commentedLooks like it passed a couple times now. I put in que once more for good measure.
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer and commentedWorked perfect for me. Terminal image included.
Comment #15
DamienMcKennaI've tidied up the code a little to match the Drupal coding standards.
Comment #16
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #18
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commented