Skip to content
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

Glue not supported #94

Open
surpavan opened this issue Jul 20, 2020 · 0 comments
Open

Glue not supported #94

surpavan opened this issue Jul 20, 2020 · 0 comments

Comments

@surpavan
Copy link

surpavan commented Jul 20, 2020

Firstly, thank you for the wonderful package, work life is made easy with it.

When using glue() function in subject, it is not supporting, it is throwing below error:

Error in FUN(X[[i]], ...) : 
  Sorry, parameter type `NA' is ambiguous or not supported.

If I remove glue or wrap it in paste() it works.

library(glue)

send.mail(from='an email address',
          to=c('some email'),
          subject=paste(glue("test- {strftime(startdate,'%B %Y')}")),
          body=content_html,
          html=TRUE,
          smtp=list(host.name='something here',send=TRUE),
          authenticate = FALSE,
          attach.files = currentpath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant