datawookie / emayili

An R package for sending email messages.
https://datawookie.github.io/emayili/
179 stars 27 forks source link

[BUG]: Sending E-Mail does not work on Shinyapps.io Server #113

Closed CloudStriderGames closed 2 years ago

CloudStriderGames commented 2 years ago

Description of the bug

Hello, sadly I don't have much of an Error log, but sending an email works if I run the App locally in RStudio, but if I try the same functionality when the app is hosted on ShinyApps.io it crashes after 5 attempts. Might this be something with my gmail security settings? Could there be another reason.

Sorry for this shoddy Report, but on the server there is very little of an error log. Basically just that the app shut down after 5 attempts.

Steps To Reproduce

Build an app that sends an email. (using a gmail account. Might have to adjust the settings to allow access from less secure places) Host it on ShinyApps.io. Try it out.

Additional Information

No response

datawookie commented 2 years ago

Hi @CloudStriderGames, you should find that {emayili} works well within a Shiny app. I suspect that the problem lies in how you are managing your cedentials. I've added a short post on my blog which should hopefully help. Let me know if you still have trouble.

Might have to adjust the settings to allow access from less secure places).

If you have adjusted this setting in your Gmail account and are able to send emails locally using {emayili} then this should not be an issue.

Best regards, Andrew.