On Mon, 10 Jun 2013, "Bhupendrasinh Thakre" <vickytha...@gmail.com> writes:
> Thanks Rex for the help. So it seems that I might have to use Python or Perl > to perform the action. > On Windows, you may want to look at Blat ( http://www.blat.net/ ). You can easily use it from R scripts via 'system'. > > > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of rex > Sent: Sunday, June 09, 2013 10:27 PM > To: r-help@r-project.org > Subject: Re: [R] Sending Email with Attachment > > Bhupendrasinh Thakre <vickytha...@gmail.com> [2013-06-09 20:03]: >> >>library("sendmailR") >> >>from <- "a...@outlook.com" >>to <- <mailto:e...@gmail.com> e...@gmail.com subject <- "Run at" >>mailControl = list(smtpServer="blu-m.hotmail.com") >>attachment <- "type_1.pdf" >>attachmentName <- "target_score.pdf" >>attachmentObject <- mime_part(x= attachment,name= attachmentName) body >><- "Email Body" >>bodywithAttachement <- list(body, attachmentObject) >>sendmail(from=from,to=to,subject=subject,msg= >>bodywithAttachement,control=mailControl) >> >>However it gives me following Error: >> >>Error: >> >>Error in socketConnection(host = server, port = port, blocking = TRUE) : >> cannot open the connection >>In addition: Warning message: >>In socketConnection(host = server, port = port, blocking = TRUE) : >> blu-m.hotmail.com:25 cannot be opened > > It's an unsurprising result since telnet doesn't connect either: > > telnet blu-m.hotmail.com 25 > Trying 65.55.121.94... [...] -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net ______________________________________________ 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.