- http://blog.csdn.net/small_farmer/article/details/52713795
本人程序,几乎和上边的网站上的一样,具体如下:
- library(sendmailR)
- #body正文
- body = "test"
- #收件人
- recipients <- c("****@qq.com")
- #发件人
- sender = "**********@126.com"
- #主题
- title = "hello boy"
- #填上邮箱密码code,如body是html,设置body=html参数,那么发出来的正文就是html格式的了
- sendmail(
- from = sender,
- to = recipients,
- subject = title,
- body = html,
- encoding = "utf-8",
- html = TRUE,
- control = list(
- smtpServer = "smtp.126.com",
- port = "25",
- user.name = "**********",
- passwd = "****************",
- ssl = TRUE
- ),
- authenticate = TRUE,
- send = TRUE
- )
出现如下错误:
- Error in wait_for(code) : SMTP Error: Error: bad syntax
亲爱的坛友们,新手入门,问的问题不当之处,还请多多包涵
请不吝赐教
谢谢


雷达卡



京公网安备 11010802022788号







