Just wanted to say a big thank you to trantako for sharing a solution that works.
QUOTE...
The problem seems to be related to PHPMAILER_PATH, which is used in the code but not defined anywhere (at least I could not find it). In order to fix it, I edited /usr/share/mantis/www/core/email_api.php by ...