Whitespace
Fix SOAP API not sending e-mails

Fixes regression introduced by cea405ccf228fd2c6ac694574a74e87396b14f1f.
Emails are now sent at the end of the SOAP call.

Fixes #17458

Original code form https://github.com/mantisbt/mantisbt/pull/113
Signed-off-by: Damien Regad <dregad@mantisbt.org>
When logging to page, send emails early

This allows logs to include all email log entries

Original code from https://github.com/mantisbt/mantisbt/pull/113
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Fix #17458: SOAP API does not send e-mails