Help!: send a email from a shinyapps.io. App.

665 views
Skip to first unread message

MVC

unread,
Mar 15, 2017, 8:19:18 PM3/15/17
to shinyapps.io Users
Hi:

I'm testing a script (shiny) which must be able to send a email. I performed successfully the next example from a local server, but it fails when is tested from shinyapps.io.

There is a problem with the smtp in shinyapps.io?

Thanks,

MVC


------------------
ui.R
------------------
fluidPage(
  mainPanel(
    textInput("value", "value:", "Empty"),
    actionButton("button",label = "Send")
    
  )
)

------------------
server.R
------------------
library("mailR")
library("shiny")

server <- function(input, output, session) {
  observeEvent(input$button, {
        send.mail(from = "te...@gmail.com",
              to = "te...@gmail.com",
              subject = "Subject of the email",
              body = "Body of the email",
              smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "mye...@gmail.com", passwd = "mypass",                   ssl = TRUE),
              authenticate = TRUE,
              send = TRUE)
    
    updateTextInput(session,"value", "value:", "Ok")
  })

}

Andy Kipp

unread,
Mar 16, 2017, 1:30:06 PM3/16/17
to MVC, shinyapps.io Users
This could be an issue with mailR on Ubuntu Linux:



--
You received this message because you are subscribed to the Google Groups "shinyapps.io Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-users+unsubscribe@googlegroups.com.
To post to this group, send email to shinyapps-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/683e23ff-be9a-4e99-8b70-771dad2f3d98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thushan Dharmawardana

unread,
Jun 1, 2017, 1:50:10 AM6/1/17
to shinyapps.io Users
Hi did you find a solution for this . 

Andy Kipp

unread,
Jun 1, 2017, 10:59:51 AM6/1/17
to Thushan Dharmawardana, shinyapps.io Users
I don't believe so. Are you seeing the same issue?

--
You received this message because you are subscribed to the Google Groups "shinyapps.io Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-users+unsubscribe@googlegroups.com.
To post to this group, send email to shinyapps-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages