Is there a way to send attachments with sendmail?

 
I can't believe theres a function to do screenshots. I have an indicator that does this and puts it in the files folder. What I would really like to do is be able to have the sendmail function take the generated screenshot and be able into include it as an attachment. Is this possible? Anyone done this.
Reason: