I'm sending an email using SocketTools.
My program creates an HTML file which includes a JPG image.
When I open the email in my client, everything looks OK but there is always an "attached" copy of the JPG file at the bottom of the email.
Is there a way to avoid this or is a function of my client (OE)?
I receive other HTML emails and they don't have this.
here is the html code used:
Here is a snipped of code to attach the file (a company logo):
My program creates an HTML file which includes a JPG image.
When I open the email in my client, everything looks OK but there is always an "attached" copy of the JPG file at the bottom of the email.
Is there a way to avoid this or is a function of my client (OE)?
I receive other HTML emails and they don't have this.
here is the html code used:
Code:
<img alt="my company" src="cid:logoJPG" width="675" height="89">
Code:
' attach logo ' logo path is something like c:\images\logos\logo.jpg IF logoPath <> "" THEN bResult = MimeAttachFile(hMessage, szLogo) IF ISFALSE(bResult) THEN MSGBOX "error attaching logo" END IF ' change header block nImagePart = MimeGetMessagePartCount(hMessage) - 1 ' Last part of the message MimeSetMessageHeaderEx(hMessage, nImagePart, "Content-Disposition", "inline", 0) MimeSetMessageHeaderEx(hMessage, nImagePart, "Content-ID", "<logoJPG>", 0) END IF
Comment