Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>sendmailR works for me on Windows 7. I referenced <a href="http://cran.es.r-project.org/web/packages/sendmailR/sendmailR.pdf" rel="noreferrer">http://cran.es.r-project.org/web/packages/sendmailR/sendmailR.pdf</a></p> <p>smtpServer= info for Outlook 2010 is in File -> Account Settings -> Account Settings -> double click your account -> text in "Server" box</p> <pre><code>library(sendmailR) #set working directory setwd("C:/workingdirectorypath") #####send plain email from &lt;- "you@account.com" to &lt;- "recipient@account.com" subject &lt;- "Email Subject" body &lt;- "Email body." mailControl=list(smtpServer="serverinfo") sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl) #####send same email with attachment #needs full path if not in working directory attachmentPath &lt;- "subfolder/log.txt" #same as attachmentPath if using working directory attachmentName &lt;- "log.txt" #key part for attachments, put the body and the mime_part in a list for msg attachmentObject &lt;- mime_part(x=attachmentPath,name=attachmentName) bodyWithAttachment &lt;- list(body,attachmentObject) sendmail(from=from,to=to,subject=subject,msg=bodyWithAttachment,control=mailControl) </code></pre> <p>In addition, multiple files can be sent by adding another mime_part to the msg list as follows (I also condensed it):</p> <pre><code>attachmentObject &lt;- mime_part(x="subfolder/log.txt",name="log.txt") attachmentObject2 &lt;- mime_part(x="subfolder/log2.txt",name="log2.txt") bodyWithAttachment &lt;- list(body,attachmentObject,attachmentObject2) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload