When sending test email and mail error appears(wrong smtp server... ), success message and error message are displayed simultaneously.See screenshot for more information.

Comments

nkoporec created an issue. See original summary.

nkoporec’s picture

Status: Active » Needs review
StatusFileSize
new1.43 KB

Created a patch, which shows the success message only when no mail errors appear.

emartoni’s picture

StatusFileSize
new1.11 KB

Hi @nkoporec, how are you?

Nice patch, but I think it's better to check the mail response instead get all the message and loop on it.
What do you think?

Best,
Eduardo

nkoporec’s picture

Hi @emartoni, yeah I would agree that is a more cleanly approach, but I tested your patch and the issue this exists ...The problem is that mail response is always true(I think it's because it takes some time to send the mail and the function always returns true at the beginning and when the error appears function executes the show error message) so the success message is displayed alongside the mail error message.See screenshot for more info.

chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 2 year old patch in #3 no longer applies to 8.x-1.x-dev.

ravi.shankar’s picture

Status: Needs work » Needs review
StatusFileSize
new1.1 KB

I have rerolled against 8.x-1.x-dev branch.

rivimey’s picture

rivimey’s picture

wundo’s picture

  • wundo committed be819c9 on 8.x-1.x authored by ravi.shankar
    Issue #2949012 by nkoporec, ravi.shankar, emartoni, rivimey, Chris...
wundo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.