I am using sendmailR to send emails but I cannot get it to work with a name associated with the email addresses, like "Sender name" <sender@domain.com>
With Postfix as the SMTP server, it throws SMTP Error: 5.5.4 Unsupported option: <sender@domain.com>
.
Which syntax or parameter should be used? Your advice is welcome!
Following the example:
from <- "\"Sender name\" <sender@domain.com>"
to <- "<olafm@datensplitter.net>"
subject <- "Hello from R"
body <- list("It works!", mime_part(iris))
sendmail(from, to, subject, body,
control=list(smtpServer="ASPMX.L.GOOGLE.COM"))