首先我们需要下载PHPMailer:https://github.com/PHPMailer/PHPMailer
无意间发现一个好玩的R包(blastula),R也可以用来自动发送邮件,之前都是用python。这样用R处理一些事情后日志就可以直接通过R发送。