Package 'mailtoR'

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

Help Index


Create a friendly user interface for sending emails

Description

Create a friendly user interface for sending emails

Usage

mailtoR(email, text, subject = NULL, cc = NULL, bcc = NULL, body = NULL)

Arguments

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

Value

a user interface for sending emails

Examples

if (interactive()) {



ui <- fluidPage(

    mailtoR(email = "",
    text = "click here to send an email"),
    use_mailtoR()

    )

server <- function(input, output){


}


shinyApp(ui, server)



}

Enable the MailtoUI javascript library

Description

The function activates the capabilities of the MailtoUI javascript library. The user needs to set it at the end of the shiny ui.

Usage

use_mailtoR()

Value

called for the side effect of activating the MailtoUI library

Examples

# Put the function at the bottom of the ui

use_mailtoR()