However, if I move the script sending the email to a crontab and try to let it run automatically, I do get the error
Nov 20 20:56:09 myserver sSMTP[27150]: Creating SSL connection to host
Nov 20 20:56:09 myserver sSMTP[27150]: SSL connection using ECDHE_RSA_AES_128_GCM_SHA256
Nov 20 20:56:10 myserver cron[524]: sendmail: 550 5.7.60 SMTP; Client does not have permissions to send as this sender
Nov 20 20:56:10 myserver sSMTP[27150]: 550 5.7.60 SMTP; Client does not have permissions to send as this sender
Nov 20 20:56:10 myserver CRON[27135]: (root) MAIL (mailed 1053 bytes of output but got status 0x0001 from MTA#012)
Running the script from the commandline (using either Rscript or shebang line from littler) works fine. And so does sending from with R.
I really like this package and I have succesfully used it to send emails via an Exchange server using code that looks like this:
However, if I move the script sending the email to a crontab and try to let it run automatically, I do get the error
Running the script from the commandline (using either
Rscript
or shebang line fromlittler
) works fine. And so does sending from withR
.Here is my sessionInfo():
Any idea on how to solve this is highly appreciated!!! Thank you!