How to send HTML email using R

前端 未结 5 916
慢半拍i
慢半拍i 2020-12-16 02:44

I have searched SO and well as google and cannot seem to find a solution to my problem. I am trying to send a HTML formatted email within R using sendmailR package. The plai

5条回答
  •  [愿得一人]
    2020-12-16 03:06

    This is possible, cf https://stackoverflow.com/a/21930556/448145 Just add:

    msg <- mime_part(message)
    msg[["headers"]][["Content-Type"]] <- "text/html"
    sendmail(from, to, subject, msg = msg, ...)
    

提交回复
热议问题