{"id":13736508,"url":"https://github.com/mrchypark/sendgridr","last_synced_at":"2025-08-18T07:12:23.541Z","repository":{"id":41082781,"uuid":"149412626","full_name":"mrchypark/sendgridr","owner":"mrchypark","description":"Mail Sender Using SendGrid mail API","archived":false,"fork":false,"pushed_at":"2025-06-02T14:35:22.000Z","size":5688,"stargazers_count":24,"open_issues_count":6,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-08T05:28:41.650Z","etag":null,"topics":["hacktoberfest","hacktoberfest2021","mail","mailer","package","r","sendgrid"],"latest_commit_sha":null,"homepage":"https://mrchypark.github.io/sendgridr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrchypark.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://mrchypark.github.io/donateme/","https://paypal.me/mrchypark"]}},"created_at":"2018-09-19T07:48:20.000Z","updated_at":"2025-07-31T15:01:09.000Z","dependencies_parsed_at":"2023-01-31T18:45:33.276Z","dependency_job_id":"a23604bd-8aae-44a2-802c-5369557f024b","html_url":"https://github.com/mrchypark/sendgridr","commit_stats":{"total_commits":252,"total_committers":8,"mean_commits":31.5,"dds":"0.13095238095238093","last_synced_commit":"71ef6b5cdea83b821e45998863ff6e9e1c270a69"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mrchypark/sendgridr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchypark%2Fsendgridr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchypark%2Fsendgridr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchypark%2Fsendgridr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchypark%2Fsendgridr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrchypark","download_url":"https://codeload.github.com/mrchypark/sendgridr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrchypark%2Fsendgridr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270957518,"owners_count":24675171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","hacktoberfest2021","mail","mailer","package","r","sendgrid"],"created_at":"2024-08-03T03:01:23.071Z","updated_at":"2025-08-18T07:12:23.517Z","avatar_url":"https://github.com/mrchypark.png","language":"R","funding_links":["https://mrchypark.github.io/donateme/","https://paypal.me/mrchypark"],"categories":["Backend","R"],"sub_categories":["Notification Integration"],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\nlibrary(sendgridr)\n```\n\n# sendgridr \u003cimg src=\"man/figures/logo.png\" align=\"right\" height=140/\u003e\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![R-CMD-check](https://github.com/mrchypark/sendgridr/workflows/R-CMD-check/badge.svg)](https://github.com/mrchypark/sendgridr/actions)\n[![send-test](https://github.com/mrchypark/sendgridr/actions/workflows/send-test.yaml/badge.svg)](https://github.com/mrchypark/sendgridr/actions/workflows/send-test.yaml)\n[![CRAN status](https://www.r-pkg.org/badges/version/sendgridr)](https://CRAN.R-project.org/package=sendgridr)\n[![runiverse-name](https://mrchypark.r-universe.dev/badges/:name)](https://mrchypark.r-universe.dev/)\n[![runiverse-package](https://mrchypark.r-universe.dev/badges/sendgridr)](https://mrchypark.r-universe.dev/packages)\n[![metacran downloads](https://cranlogs.r-pkg.org/badges/sendgridr)](https://cran.r-project.org/package=sendgridr)\n[![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/sendgridr)](https://CRAN.R-project.org/package=sendgridr)\n\u003c!-- badges: end --\u003e\n\n\nThe goal of sendgridr is to mail using r with sendgrid service that provides free 100 mail per day forever.\n\n## Installation\n\n```\n# CRAN version\ninstall.packages(\"sendgridr\")\n\n# Dev version\ninstall.packages(\"sendgridr\", repos = \"https://mrchypark.r-universe.dev\")\n```\n\n## Set API key for authentication\n\nYou can set api key using `auth_set()` function.\nAlso `auth_check()` function check api key works.\n\n```\nauth_check()\nauth_set()\n```\n\n### Using with Shiny Apps\n\nFor non-interactive environments like Shiny, you can provide the SendGrid API key via the `SENDGRID_API_KEY` environment variable. For example:\n\n```\nSys.setenv(SENDGRID_API_KEY = \"YOUR_API_KEY\")\nlibrary(sendgridr)\n```\n\n## Send mail\n\n### Example code\n\nPlease replace your conditions.\n\n```\nmail() |\u003e\n  from(\"example1@mail.com\", \"example name for display\") |\u003e\n  to(\"example2@mail.com\", \"example name for display 2\") |\u003e\n  subject(\"test mail title\") |\u003e\n  body(\"hello world!\")  |\u003e\n  ## attachments is optional\n  attachments(\"report.html\") |\u003e\n  send()\n```\n\n### sg_mail class\n\n`mail()` function create sg_mail class object and also list.\nsg_mail class only has print method.\n\n```{r}\nsendproject1 \u003c- mail()\nclass(sendproject1)\nsendproject1\n```\n\nto, from, subject, body are required. cc, bcc, attachments are optional.\n\n### multi- setting using inline\n\nto, cc, bcc, attachments functions are able to set multi values.\n\n```{r}\nlibrary(sendgridr)\nmail() |\u003e\n  from(\"example1@mail.com\", \"toexam@mail.com\") |\u003e\n  to(\"toexam1@mail.com\", \"1 exam\") |\u003e\n  to(\"toexam2@mail.com\", \"2 exam\") |\u003e\n  to(\"toexam3@mail.com\", \"3 exam\") |\u003e\n  subject(\"test mail title\") |\u003e\n  body(\"hello world!\")\n```\n\n## Code of Conduct\n  \nPlease note that the sendgridr project is released with a [Contributor Code of Conduct](https://mrchypark.github.io/sendgridr/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrchypark%2Fsendgridr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrchypark%2Fsendgridr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrchypark%2Fsendgridr/lists"}