Sending email with images. Still more work to be done
added custom refs to email