Image in mail

Hi,I want that when a mail generates , a logo will get pasted in the body of the mail. For this I have used the code:

txt = txt & sep & |

<img border=“0” src=“| & httpserver & |/IMG/” + db.FileName + “/x.gif?openimageresource” width=“180” height=“38”>|

This generates an error. The status bar shows that “image or object not found in server”. But I I hardcore the file path its working.

The file path is IMG/try.nsf.

Can any one help?