You can create a custom email to be sent after a successful execution.
For Domino File System (DFS) projects, create a file named
email.html in the root of your project folder as part of your run.
The HTML in
email.html can be used as the body and subject of the email sent on success.
To include images, reference the path to the image from the root of the folder. The image can be anywhere in your project. For example, to include an image in
Put all CSS styles in inline
styleattributes. Most email clients ignore
<style>blocks in HTML emails.
Use tables for complex layouts. Most email clients ignore CSS positioning.
<title>tags at the start of the HTML file to customize the subject. For example:
<head><title>Custom Subject</title></head>creates an email with the subject "[Domino] Custom Subject".
To explicitly define the files that are sent with your success email, create a file named
.dominoresultsand write a filename per line in the
# generate and save plot png("pressure.png") plot(pressure) dev.off() # generate HTML in a string html_string <- paste0(" <head> <title>",Sys.Date()," - Pressure report","</title> </head> <body> <h2>Exponential pressure growth! </h2> <h3>",Sys.time(),"</h3> <img src='pressure.png' /> <p>Caption goes here</p> </body> ") # write string to file write(html_string, "email.html")