how do you send email from R

后端 未结 8 928
情书的邮戳
情书的邮戳 2020-11-29 18:11

I want to send emails from R. This is what I have so far:

library(sendmailR)


from <- \"eamil@example.com\"
to <- \"email2@example.com\"
subject <-         


        
8条回答
  •  情书的邮戳
    2020-11-29 18:39

    I just tried it out, and it worked for me.

    My only differences were I used <> for the from and to:

    from = ""
    to = ""
    

    and my mail control was different, I used

    control=list(smtpServer="ASPMX.L.GOOGLE.COM"))
    

提交回复
热议问题