4

I want to use sendmailR send email via smtp.exmail.qq.com server,I looked at the sample to do it ,but failed,how can I work it out?

sendmail(
      from="***@companyName.com",
      to="***@companyName.com",
      body="Hallo",   
      subject="from R procedure",
      control=list(smtpServer="smtp.exmail.qq.com"),
    )

Error in socketConnection(host = server, port = port, blocking = TRUE) : 
  cannot open the connection
In addition: Warning message:
In socketConnection(host = server, port = port, blocking = TRUE) :
  localhost:25 cannot be opened
Spacedman
  • 92,590
  • 12
  • 140
  • 224
Lawes
  • 609
  • 1
  • 8
  • 14
  • Odd. You specify a server but it seems to be connecting to localhost. What do you get if you add `verbose=TRUE` to your control options? Please try, and then edit your question with the result... – Spacedman Jan 03 '14 at 12:55
  • I add `verbose=TRUE` as what you said,but error happened else. `Error in wait_for(code) : SMTP Error: Error: need EHLO and AUTH first !` – Lawes Jan 04 '14 at 06:59

0 Answers0