When a run finishes in Domino, by default you will be notified of failed project runs by email. You and your project collaborators can also choose to receive notifications of successful runs. On successful runs, you will receive an email with the last few lines of stdout, and up to 10 Results files from your run (Domino will detect which files have been added or changed during your run, and will capture those as the run's Results).
You may edit your notification preferences in the project collaborators tab:
If you'd like to format your own success email to display your figures with more context, you can place a file named
email.html in the root of your project folder. That HTML will be used as the body of the email sent on success.
Tips for cool-looking HTML emails:
- Include images by referencing the path to the image from the root of the folder (the image can be anywhere in your project). For instance, to include an image written to
plots/plot1.pngyou would write
<img src="plots/plot1.png" /
- Put all CSS styles in inline
styleattributes. Most email clients ignore
<style>blocks in HTML emails.
- If you want to do complex layout, use tables. Most email clients ignore CSS positioning.
- You can customize the subject by including a
<head>tag at the start of the file.
<head><title>Custom Title</title></head>will result in an email with the subject "[Domino] Custom Title". Be sure to include the
<title>tags as well.
For example, here is an R script and the resulting email:
# 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")