soniCYouth
soniCYouth

Reputation: 33

send emails in R on Linux

I am running models in R on a Linux server and want the program to send me an email after the process is complete. Does anyone know how to do it? In Windows I use RDCOMClient to send emails via outlook; however, on Linux this option is not available.

Thank you.

Upvotes: 1

Views: 869

Answers (1)

Dirk is no longer here
Dirk is no longer here

Reputation: 368201

If your Linux machine has email setup (which is very common and likely) then you almost surely have a command-line client for mail sending, possibly mail or mailx.

You can easily send mail by pipe()-ing into that process. Or, if you will, by writing the mail file out and then using system on it.

Many mail readers like mutt can also be used to send. In general, "it depends". The lowest common denominator is the sendmail interface but that is very raw.

Upvotes: 2

Related Questions