[R] Sending Email with Attachment
es at enricoschumann.net
Mon Jun 10 08:06:51 CEST 2013
On Mon, 10 Jun 2013, "Bhupendrasinh Thakre" <vickythakre at 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-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
> Behalf Of rex
> Sent: Sunday, June 09, 2013 10:27 PM
> To: r-help at r-project.org
> Subject: Re: [R] Sending Email with Attachment
> Bhupendrasinh Thakre <vickythakre at gmail.com> [2013-06-09 20:03]:
>>from <- "abcd at outlook.com"
>>to <- <mailto:efgh at gmail.com> efgh at 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)
>>However it gives me following 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 126.96.36.199...
More information about the R-help