I use new version of PHPMailer. On the server, I get an error:
Warning: escapeshellcmd() has been disabled for security reasons in /public_html/library/e
You can use an older version. I used Version: 5.2.6 and it works.