Re: [R] Attaching a pdf file to an email generated with sendmailR?

2015-10-09 Thread Michael Ashton
I seem to be able to get sendmailR to work with a text file, and maybe html is the same way...I tried this with a Pdf file and it didn't seem to work. But I will try again to be sure. Thanks for the suggestion. > On Oct 9, 2015, at 7:55 AM, Bos, Roger wrote: > >

Re: [R] Attaching a pdf file to an email generated with sendmailR?

2015-10-09 Thread Bos, Roger
Michael, I use sendmailR to attached a file to an email and it does work. I remember there was something non-intuitive when I was figuring it out. I use both the attachPath and the attachName. The attachPath has the full path including the filename and the attachName just has the filename.

Re: [R] Attaching a pdf file to an email generated with sendmailR?

2015-10-08 Thread Michael Ashton
No particular reason for sendmailR...I will try mailR and thanks! On Oct 8, 2015, at 4:49 PM, Frans Marcelissen > wrote: Hi Michael, I don't know whether there is a particulal reason for using sendmailR, but I use mailR

Re: [R] Attaching a pdf file to an email generated with sendmailR?

2015-10-08 Thread Frans Marcelissen
Hi Michael, I don't know whether there is a particulal reason for using sendmailR, but I use mailR for this without any problem. mailR::send.mail(from, to, subject = "", body = "", encoding = "iso-8859-1", html = FALSE, inline = FALSE, smtp = list(), authenticate = FALSE, send = TRUE,

[R] Attaching a pdf file to an email generated with sendmailR?

2015-10-08 Thread Michael Ashton
For some time I have been using sendmailR to generate a simple message when a report was done running. Recently, I started adding a couple of pertinent statistics in the body of the email. Now, I've finally decided that what the heck, I ought to simply attach the report itself to the email.