Not sure what the root cause was of this issue, however due to use multiple modules using different versions of some java libraries there where some other issues too.
Remove older/duplicated versions from the userlib did also solve this issue.
Much pain is caused by Mendix due to missing properly be handling dependency in java libraries!
Hi Andries are you receive this error message in the Mendix cloud or on your local machine? Which SMTP settings you use?