You might have a couple of issues with mailR when running on a server.
When installing or after installing the r package: rJava you might encounter the following: libjvm.so: cannot open shared object file: No such file or directory
I fixed this on a ubuntu server with this command: sudo R CMD javareconf