MyNixOS website logo
Description

'emailjs' Support.

Use 'emailjs' API easily in 'R'. This package is not official. <https://www.emailjs.com/docs/rest-api/send/>. You can send e-mail with 'emailjs' with function, based on 'httr'. You can also make a 'shiny' ui and server function. It can be used for making feedback form, inquiry, and so on.

emailjsr

emailjs.com support for R.

Install

## From github: latest version
remotes::install_github('changwoolim/emailjsr')

Before Use

Before use, you should sign up at emailjs.com, and make your template. Please sure that you should not expose your user id, access token, and so on.

Allow non-Browser Applications

You should allow EmailJS API for non-browser applications.

User-agent, Browser width and height

If you want to detect User-agent, Browser width and height, type down shinybrowser::detect() on your ui.

Use with your own application

emailjsr::send_email(service_id, user_id, template_id, template_params, access_token)

Using Preset modal

When you use 'shiny', you can use preset modal.

library(shiny)
library(emailjsr)

ui <- fluidPage(
  use_emailjsr_ui("id")
)

server <- function(input, output, session) {
  emailjsr::use_emailjsr_server("id",
    service_id = "Your_service_id",
    template_id = "Your_template_id",
    user_id = "Your_user_id",
    access_token = "Your_Access_Token",
    language = "en"
  )
}

shinyApp(ui, server)

Please remember you should fill your own ids, and tokens.

You can see button named "Show feedback modal". This message is default, and you can change it. When you click, you will see modal below.

In this preset, Feedback * is required. So if you don't write down anything, error message will be shown. If you fill Feedback * and other form(if needed), just click "Submit" button. You will receive email right away.

Feedback

You can make issue at my github repository. Any bug report, suggestion are welcomed.

Metadata

Version

0.0.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows