From f74ab9d6d91f9ade666cae5b161da7ee5d20f985 Mon Sep 17 00:00:00 2001 From: Salim B Date: Thu, 3 Oct 2019 21:48:38 +0200 Subject: [PATCH 1/2] send mail body as actual body instead of inline attachment and rely on mailsend-go's auto-detection of the MIME type --- R/smtp_send.R | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/R/smtp_send.R b/R/smtp_send.R index e45f8bc9..b50eda36 100644 --- a/R/smtp_send.R +++ b/R/smtp_send.R @@ -249,10 +249,8 @@ smtp_send <- function(email, `-to` = to, `-cc` = cc, `-bcc` = bcc, - `attach` = no_options(), - `-file` = tempfile_, - `-mime-type` = "text/html", - `-inline` = no_options() + `body` = no_options(), + `-file` = tempfile_ ) # Create the vector of arguments related to file attachments From 1c7e8acb1c1ad1df3589b6f0ee5dd95d10a8ad6e Mon Sep 17 00:00:00 2001 From: Salim B Date: Fri, 4 Oct 2019 20:48:42 +0200 Subject: [PATCH 2/2] Update R/smtp_send.R Explicitly set MIME type Co-Authored-By: Richard Iannone --- R/smtp_send.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/smtp_send.R b/R/smtp_send.R index b50eda36..32694b28 100644 --- a/R/smtp_send.R +++ b/R/smtp_send.R @@ -250,7 +250,8 @@ smtp_send <- function(email, `-cc` = cc, `-bcc` = bcc, `body` = no_options(), - `-file` = tempfile_ + `-file` = tempfile_, + `-mime-type` = "text/html" ) # Create the vector of arguments related to file attachments