Isn't this exactly the same issue as in https://forum.mendix.com/link/questions/92447 ?
With regards to the issue, there is already a possible answer in that thread.
Another possible solution is trying to send an e-mail with localhost as server. you can then locally run a tool like this in order to intercept the e-mails: http://nilhcem.com/FakeSMTP/