0

My automated test takes a screenshot that needs to get emailed to managers in my company. currently, the screenshot is stored on a Hudson test server and my html email has this line:

<img src=\"${BUILD_URL}/artifact/sonarReport.png\">

and then i send the email using :

mutt -e 'set content_type=text/html' -s "Latest Report"  -- ${EMAIL_LIST} < ${WORKSPACE}/email.html

The problem i face is that a lot of time these managers are on the road or on their phone and they would like to see that email. Given that this image is stored on a company server, the only way for them to see it is to VPN into the company network. They are not very happy with this, so is there any way to deliver the image in another way to them.

Putting the image on a public server is not an option. Also, they don't like to have the report as an attachment ( only embedded in the body is acceptable)

Codrguy
  • 325

2 Answers2

1

If attaching the image is not an option, and hosting it publicly is not an option, then viewing it outside your environment is impossible. If, however, attaching the image is okay (as opposed to attaching the report) then try this:

stack overflow question

0

This link provided exactly what i needed using java : http://www.jroller.com/eyallupu/entry/javamail_sending_embedded_image_in

Codrguy
  • 325