## Not run: from <- sprintf("<sendmailR@ to <- "<olafm at datensplitter.net>" subject <- "Hello from R" msg <- "It works!" sendmail(from, to, subject, msg, control=list(smtpServer="ASPMX.L.GOOGLE.COM")) ## End(Not run) the above commands are provided in this document ie http://cran.r-project.org/web/packages/sendmailR/sendmailR.pdf it is not working. hence give me a valid code for sending mails using gmail.com thanks veepsirtt
Hi veepsirtt This code is fragmented due to the syntax of the example not being parsed as intended to text. The source of \examples for sendmail.Rd is: from <- sprintf("<sendmailR@%s>", Sys.info()[4]) to <- "< olafm at datensplitter.net>" subject <- "Hello from R" msg <- "It works!" sendmail(from, to, subject, msg, control=list(smtpServer="ASPMX.L.GOOGLE.COM")) Cheers Chris Hadley Wickham, Creator of ggplot2 - teaching in the UK. 1st - 2nd November 2010. To book your seat please go to http://mango-solutions.com/news.html Chris Campbell MANGOSOLUTIONS T: +44 (0)1249 767700 Ext: 233 F: +44 (0)1249 767707 M: +44 (0)7967 028876 www.mango-solutions.com Unit 2 Greenways Business Park Bellinger Close Chippenham Wilts SN15 1BN UK -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Velappan Periasamy Sent: 23 August 2010 11:45 To: r-help at r-project.org Subject: [R] sendmailR-package-valid code needed ## Not run: from <- sprintf("<sendmailR@ to <- "<olafm at datensplitter.net>" subject <- "Hello from R" msg <- "It works!" sendmail(from, to, subject, msg, control=list(smtpServer="ASPMX.L.GOOGLE.COM")) ## End(Not run) the above commands are provided in this document ie http://cran.r-project.org/web/packages/sendmailR/sendmailR.pdf it is not working. hence give me a valid code for sending mails using gmail.com thanks veepsirtt ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. LEGAL NOTICE This message is intended for the use o...{{dropped:9}}
Hello Chris Campbell , I tried this for my email id it give me errors> from <- sprintf("<sendmailR@%s>", Sys.info()[4]) > to <- "< veepsirtt at gmail.com>" > subject <- "Hello from R" > msg <- "It works!" > sendmail(from, to, subject, msg,control=list(smtpServer="ASPMX.L.GOOGLE.COM"))Error in waitFor(code) : SMTP Error: 5.1.1 The email account that you tried to reach does not exist. Please try Calls: sendmail -> smtpSubmitMail -> sendCmd -> waitFor my email id is correct please help me with regards veepsirtt
No, alas. It would have been nice but I decided I didn't need it that badly/need to spend time reinventing that many wheels. (It does do mail-merge, though, which is what I developed it for in the first place.) It seemed to me that a more sensible solution would have been to find a Perl or Python library/code fragment that knew the formats for MIME attachments, but surprisingly (to me) I didn't easily discover anything appropriate floating around on the web ... Frank Harrell wrote:> Ben does yours create mime attachments? > Thanks > Frank > > Frank E Harrell Jr Professor and Chairman School of Medicine > Department of Biostatistics Vanderbilt University > > On Mon, 23 Aug 2010, Ben Bolker wrote: > >> Barry Rowlingson <b.rowlingson <at> lancaster.ac.uk> writes: >> >>> >>> On Mon, Aug 23, 2010 at 3:55 PM, Velappan Periasamy <veepsirtt <at> >>> gmail.com> >> wrote: >>>> Hello Chris Campbell , >>>> >> >> I just posted my embryonic 'Rmail' package, which does a form >> of SMTP authentication (maybe not the version you want), to >> http://www.mathserv.mcmaster.ca/~bolker/R/src/contrib/Rmail_1.0.tar.gz >> >> You should be able to install it via >> >> install.packages("Rmail",contriburl="http://www.math.mcmaster.ca/~bolker/R/src/contrib") >> >> >> (although not that it is a source package -- there's no compiled >> code, though, so if necessary you can download the tarball and dig >> the R source code out ...) >> >> ______________________________________________ >> R-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >>