As you are sending a URI to a document you have to make sure that the recipient can acces it :-)
To send images inside a mail the documents MIME type is not "txt/html" but rather "multipart..."
which also allows you to send attachements and ships with examples in it's manpage.