{"id":25666234,"url":"https://github.com/enricoschumann/mailtools","last_synced_at":"2025-10-08T08:08:32.907Z","repository":{"id":143717881,"uuid":"102031933","full_name":"enricoschumann/mailtools","owner":"enricoschumann","description":"R utilities for handling email","archived":false,"fork":false,"pushed_at":"2023-10-27T14:35:38.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T08:19:21.743Z","etag":null,"topics":["email","outlook","sendemail"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enricoschumann.png","metadata":{"files":{"readme":"README.org","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-31T18:26:44.000Z","updated_at":"2021-12-22T14:05:35.000Z","dependencies_parsed_at":"2023-07-05T19:00:11.835Z","dependency_job_id":null,"html_url":"https://github.com/enricoschumann/mailtools","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/enricoschumann/mailtools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricoschumann%2Fmailtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricoschumann%2Fmailtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricoschumann%2Fmailtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricoschumann%2Fmailtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enricoschumann","download_url":"https://codeload.github.com/enricoschumann/mailtools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricoschumann%2Fmailtools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278909710,"owners_count":26066887,"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-10-08T02:00:06.501Z","response_time":56,"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":["email","outlook","sendemail"],"created_at":"2025-02-24T08:19:23.023Z","updated_at":"2025-10-08T08:08:32.858Z","avatar_url":"https://github.com/enricoschumann.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: mailtools\n#+AUTHOR: Enrico Schumann\n\n* Usage: Sending Emails\n\nA typical call may look as follows.\n\n#+BEGIN_SRC R :eval never\n  library(\"mailtools\")\n  sendmail(subject  = \"Greetings\",\n\t   body     = \"Hello\",\n\t   to       = \"testing@testing.org\",\n\t   from     = \"\u003cyour.email-adress@your-server.net\u003e\",\n\t   port     = 123,\n\t   server   = \"my-magic-server.net\",\n\t   user     = \"username\",\n\t   password = \"1234.password\",\n\t   headers  = \"X-GREETINGS-CATEGORY: hello\",\n\t   method   = c(unix = \"sendemail\",\n\t\t\twindows = \"blat\")[.Platform$OS.type])\n#+END_SRC\n\nOn Windows, you may prefer method =outlook= (which\nrequires Outlook and PowerShell installed).\n\n#+BEGIN_SRC R :eval never\n  sendmail(subject  = \"Greetings\",\n           body     = \"Hello\",\n           to       = \"testing@testing.org\",\n           method   = \"outlook\",\n           display.only = TRUE)  ## only open mail in Outlook\n#+END_SRC\n\nFormating message texts is possible via HTML. \n(Note that R supports multi-line strings.)\n\n#+BEGIN_SRC R :eval never\n  body \u003c- \"\n  \u003cp\u003eHello.\u003c/p\u003e\n  \u003cp\u003ePlease do not send \u003cb\u003espam\u003c/b\u003e.\u003c/p\u003e\n  \"\n\n  sendmail(subject  = \"Greetings\",\n\t   body     = body,\n\t   to       = \"testing@testing.org\",\n\t   method   = \"outlook\",\n\t   html     = TRUE,\n\t   display.only = TRUE)\n#+END_SRC\n\n(But note that none of the backends will automatically\n create a text part for your message. In the good old\n days, a message with an HTML part but no text part was\n often more likely to be flagged as spam. But these\n days it seems to be the norm. Oh well. You have been\n warned, in any case.)\n\n\n* Installation\n\nThe latest version of the package is available from\n[[http://enricoschumann.net/R/packages/mailtools]]. You can\ninstall the package directly from within R:\n#+BEGIN_SRC R :eval never\n  install.packages('mailtools',\n                   repos = c('http://enricoschumann.net/R', \n                             getOption('repos')))\n#+END_SRC\n\n\nNote that the package itself does not provide code for\nactually sending emails. For this, you'll need a\nbackend.\n\nOn GNU/Linux systems, there is support for [[http://caspian.dotconf.net/menu/Software/SendEmail][=sendemail=]].\nOn Debian/Ubuntu systems, for instance, it is easily\ninstalled:\n#+BEGIN_SRC sh :eval never\n  sudo apt install sendemail\n#+END_SRC\n\nOn Windows, the preferred backend is [[https://www.blat.net/][Blat]].\nAlternatively, provided PowerShell is installed (which\nis the default case on newer Windows systems), you may\nuse Outlook.\n\nThere is also a publicly-available repository at\nhttps://github.com/enricoschumann/mailtools.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenricoschumann%2Fmailtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenricoschumann%2Fmailtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenricoschumann%2Fmailtools/lists"}