how to attach a jpeg image file to pub.client:smtp

I have a need to send email with jpeg file is by attahment or include the image file in the body of the html message.
i wish to know the content type , charset and encoding parameters. And is this is enouogh or any other setting i need to change in pub.client.smtp.

Thank you