Actually some attachments work and some don't. I tested a lot of differet combinations, and I couldn't see any logic to why some worked and some other didn't. To rollback, I had to uninstall v5.1.0 and reinstall v4.9.35. Seems like it is some DLL that the mailingroutine uses that fucked this up.