{"repo":"rstudio/blastula","free":true,"listed":false,"github":"https://github.com/rstudio/blastula","clone":"git clone https://github.com/rstudio/blastula.git","description":"Easily send great-looking HTML email messages from R","language":"R","stars":575,"topics":["r","email","markdown","responsive-email","easy-to-use","smtp","html"],"license":null,"category":"auth-billing-email","readme_excerpt":"The blastula package makes it easy to produce and send HTML email from R . The message can have three content areas (the body, the header, and the footer) and we can insert Markdown text, block-based components, and even HTML fragments. The underlying HTML/CSS is meant to display properly across a wide range of email clients and webmail services. The resulting email message is responsive so it’ll look great on both large displays and mobile devices. Composing an Email Message When you compose an email, you can use objects from the global workspace and work them into the message content. Let’s create a nicely formatted date/time string ( date time ) with the add readable time() function, and, transform an image on disk to an HTML string object ( img string ). Now we use the compose email() function to compose the email. There are three main arguments here: body , header , and footer . You can supply Markdown text to any of these content areas to get rendered HTML. In the example code below, the strings that are part of the email body and the email footer are combined with glue::glue() and, since we have Markdown and HTML fragments, we need to use the md() function. After creating the email message, we can look at it to ensure that the formatting is as expected. Simply call the object itself and it will be displayed in the Viewer. Sending an Email Message via SMTP We can store SMTP email credentials in a file using the create smtp creds file() function. There are also other way","default_branch":null,"files":null,"tree":[],"storefront":"/r/rstudio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rstudio/blastula/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}