[R] Sending Email from R
dwinsemius at comcast.net
Wed Feb 20 20:58:52 CET 2013
On Feb 20, 2013, at 10:44 AM, David Winsemius wrote:
> On Feb 20, 2013, at 10:24 AM, Lopez, Dan wrote:
>> Hi R experts,
>> I know how to send simple plain text message in body and how to send with attachments. This is thanks to stackoverflow reference below.
>> But I don't know how to send dput() output in the body of the email (or attachment) using sendmailR. I more interested in figuring out how to include it as part of the body of the email.
>> Does anybody have experience on how to do this?
>> #set working directory
>> #####send plain email
>> from <- "you at account.com"
>> to <- "recipient at account.com"
>> subject <- "Email Subject"
>> body <- "Email body."
> Does this mean you get success with the simple example you posted?
This might be critical. There was a 2010 posting from Barry Rowlingson saying that 'sendmail' in sendmailR was unable to provide smtp-authorization. I got an error message regarding authorization when I added my password.
That thread also included Ben Bolker's offer of code in package:Rmail at:
I was able to get Lin Himmelmann's mail::sendmail function to send a message to myself. Looking at the code it appears Lin has set up a PHP server and is parsing an http: request. It also doesn't look like it is intended to be general solution since there is a message saying the numbers of messages are limited.
Alameda, CA, USA
More information about the R-help