[R] Does R have a command for sending emails?

Philippe Grosjean phgrosjean at sciviews.org
Tue May 10 10:57:43 CEST 2005


Prof Brian Ripley wrote:
> On Mon, 9 May 2005, Fernando Saldanha wrote:
> 
>> Is there a way to have an R program send an email?
> 
> 
> No.  There have been proposals to do this, but it is highly OS-specific, 
> and also likely to hit security issues.
> 
> You could take a look at what bug.report() does (which is nothing on 
> some platforms).

...but on most, if not all systems, you can use command-line 
applications to send emails... and since R can start command-line 
applications with system(), you should get that functionnality easily 
"incorporated" into R. Just use Google a little bit!
Best,

Philippe Grosjean

> 
>> Something like this:
>>
>> address <- 'abc at d.com'
>> text <- 'This is the email body'
>> send.email(address, text)
> 
> 
>




More information about the R-help mailing list