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?
> 
> #http://stackoverflow.com/questions/2885660/how-to-send-email-with-attachment-from-r-in-windows
> #?sendmailR::sendmail
> 
> library(sendmailR)
> 
> #set working directory
> setwd("C:/workingdirectorypath")
> 
> #####send plain email
> 
> from <- "y...@account.com"
> to <- "recipi...@account.com"
> subject <- "Email Subject"
> body <- "Email body."
> mailControl=list(smtpServer="serverinfo")
> 
> sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl)

Does this mean you get success with the simple example you posted? There are a 
set of mime_part.* functions listed in the index for that package.

-- 

David Winsemius
Alameda, CA, USA

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to