File Name & Path

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?

Subject: File Name & Path

Are you sure that filepath refers to the Domino Data directory, (not the Notes data directory?)

Subject: RE: File Name & Path

I am not sure, put I tried using db.filepath, even this did not work.

txt = txt & sep & |

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

Subject: RE: File Name & Path

the first thing I would do is to check if the variable httpserver and db.FilePath returns the correct values. you can easily do this by placing Msgbox calls before the line of code in question.

post the said info and maybe that should help point to where the problem is.