I'm trying to send an email from my shiny app using the library mailR. My code is:
send.mail(from,to,subject=subject,body=msg,smtp=
list(host.name = "smtp.gmail.com",port=465,user.name="name",passwd='psswd',ssl=TRUE),
authenticate = TRUE, send=TRUE)
(from,to,name,password... are not shown for privacy reasons).
When I run this code, I get the following error:
Can anyone help me?

After many tries I think that the best option is sending emails using "emayili" through a mailgun account