Is there a way to use hashed passwords with mailr in R?

107 Views Asked by At

I'm trying to use the mailr package in R to send automated emails, and I love how intuitive it is. However, my only hesitation is that I need to put my password directly in my script.


library(mailr)
send.mail(from = "[email protected]",
          to = c("[email protected]"),
          subject = "Hi!",
          body = "It's cool sending emails from R!",
          authenticate = TRUE,
          smtp = list(host.name = "smtp.mail.yahoo.com",
                      port = 587,
                      user.name = "[email protected]",
                      passwd = "MyCompletelyVisiblePassword",
                      tls = TRUE,
                      sls = TRUE))

Is there a way to hashed passwords in mailr? For instance, I like how you have that option in shinyauthr's check_credentials() function where you read in a column called is_hashed_password = TRUE. That way, I can hash my password using the scrypt package and know that my password is (more) secure.

Is there anything similar to this in mailr, or any other emailing package in R that will work with outlook?

0

There are 0 best solutions below