Title: | Creates a Friendly User Interface for Emails Sending in 'shiny' |
---|---|
Description: | Allows the user to generate a friendly user interface for emails sending. The user can choose from the most popular free email services ('Gmail', 'Outlook', 'Yahoo') and his default email application. The package is a wrapper for the 'Mailtoui' 'JavaScript' library. See <https://mailtoui.com/#menu> for more information. |
Authors: | Mohamed El Fodil Ihaddaden [aut, cre], Mario Rodriguez [ctb, cph] (mailtoui.js library developer) |
Maintainer: | Mohamed El Fodil Ihaddaden <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-02 06:13:25 UTC |
Source: | https://github.com/feddelegrand7/mailtor |
Create a friendly user interface for sending emails
mailtoR(email, text, subject = NULL, cc = NULL, bcc = NULL, body = NULL)
mailtoR(email, text, subject = NULL, cc = NULL, bcc = NULL, body = NULL)
email |
the emails of the recipients |
text |
the link text that will be displayed on the ui |
subject |
the subject of the email. Defaults to NULL |
cc |
the emails of the CC (carbon copy) recipients. Defaults to NULL |
bcc |
the emails of the BCC (blind carbon copy) recipients. Defaults to NULL |
body |
the body of the email. Defaults to NULL |
a user interface for sending emails
if (interactive()) { ui <- fluidPage( mailtoR(email = "", text = "click here to send an email"), use_mailtoR() ) server <- function(input, output){ } shinyApp(ui, server) }
if (interactive()) { ui <- fluidPage( mailtoR(email = "", text = "click here to send an email"), use_mailtoR() ) server <- function(input, output){ } shinyApp(ui, server) }
The function activates the capabilities of the MailtoUI javascript library. The user needs to set it at the end of the shiny ui.
use_mailtoR()
use_mailtoR()
called for the side effect of activating the MailtoUI library
# Put the function at the bottom of the ui use_mailtoR()
# Put the function at the bottom of the ui use_mailtoR()