David, I second Jason's good suggestion, with the additional comment that if you have Outlook on the same machine, a short VBScript through the Windows Cscript / Wscript facility should be another sufficient alternative to consider. An example of this can be found at http://www.mindspring.com/~tflynn/excelvba2.html#Send_Mail I use something similar to this, and even though it is written for Excel VBA, the logic should transfer over to VBScript. And as Jason specifically says, system() provides the interface you would need to launch the script.
Hope that helps. Bill ---------------------------------------- Bill Pikounis, Ph.D. Biometrics Research Department Merck Research Laboratories PO Box 2000, MailDrop RY33-300 126 E. Lincoln Avenue Rahway, New Jersey 07065-0900 USA [EMAIL PROTECTED] Phone: 732 594 3913 Fax: 732 594 1565 > -----Original Message----- > From: Jason Turner [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 30, 2003 6:33 AM > To: David Khabie-Zeitoune > Cc: R-Help > Subject: Re: [R] Sending emails from R under Windows > > > David Khabie-Zeitoune wrote: > > Does anyone know of any R routines to send emails from R, > under Windows? > > I thought about writing such a facility using the R(D)COM package to > > drive e.g. MS Outlook, but I don't want to reinvent the > wheel. I have > > found a function Sys.mail in the library syskern, but this > only works > > under Unix by shelling out a mail command. > > I've used R to call a perl script to handle the mailing; both the raw > mail commands, plus the compression of attachments, mime encoding of > plots or data files, etc. Haven't got it handy, but (being perl) it > should be very platform independant doing things that way. > > You could run the script either as a system() command, or > possibly using > the RSperl library from Omegahat (haven't used the latter - just > speculating). > > Check out the MIME::Parser and Mail::Sender perl modules. > > Cheers > > Jason > -- > Indigo Industrial Controls Ltd. > 64-21-343-545 > [EMAIL PROTECTED] > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help