-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E-mail is sent as "inline" attachment instead of regular mail body #55
Comments
@salim-b Sorry for the delay in getting back to you on this. Could you send a screenshot of a sample email in Thunderbird 60 that shows the issue? |
|
To be more clear: Instead of this code run_args <-
list(
`-sub` = subject,
`-smtp` = credentials$host,
`-port` = credentials$port %>% as.character(),
`-ssl` = ssl_opt,
`auth` = no_options(),
`-user` = credentials$user,
`-pass` = credentials$password,
`-fname` = sender_name_opt,
`-from` = from,
`-to` = to,
`-cc` = cc,
`-bcc` = bcc,
`attach` = no_options(),
`-file` = tempfile_,
`-mime-type` = "text/html",
`-inline` = no_options()
) I would suggest to use this (at least by default): run_args <-
list(
`-sub` = subject,
`-smtp` = credentials$host,
`-port` = credentials$port %>% as.character(),
`-ssl` = ssl_opt,
`auth` = no_options(),
`-user` = credentials$user,
`-pass` = credentials$password,
`-fname` = sender_name_opt,
`-from` = from,
`-to` = to,
`-cc` = cc,
`-bcc` = bcc,
`body` = no_options(),
`-file` = tempfile_,
`-mime-type` = "text/html"
) |
I did a quick test and I can confirm that using the |
this is a workaround to avoid messages being sent as inline attachment instead of regular body, cf. rstudio/blastula#55
Whenever I send an e-mail using
blastula::smtp_send()
the actual message is sent as an "inline attachment" which – at least in Thunderbird 60 with default settings – results in no (visual) text in the mail body unless you explicitly activateDisplay Attachments Inline
.In the code of
smtp_send.R
I see that mailsend-go'sattach
option is used with the-inline
flag. I guess it would be better to use thebody
option instead (at least by default), so that all mail clients can properly display the message.Or is there a specific reason why the
attach
option is used?I'm using the latest dev version of blastula on Ubuntu Linux 16.04 with latest mailsend-go v1.0.4.
The text was updated successfully, but these errors were encountered: