Displaying 1 result from an estimated 1 matches for "bodywithattachement".
2013 Jun 10
1
Sending Email with Attachment
...gh@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 me...