Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show a logo inside an email ? 1

Status
Not open for further replies.

capri1966

Programmer
May 13, 2010
57
ES
Hello, one customer ask me for the posibility of display a logo in every email that he send with my app. I'm using CDO and it's work fine but i've tried to insert the logo with .htmlbody option but don't display it.
Can anyone show me an example for to do this. Thanks
 
Where is the logo stored?

If it is stored on a server that is accessible to the recipient, then you should be able to do it with .htmlbody. Add something like this to the HTML:

[tt]<img src=" />[/tt]

If, on the other hand, the logo is stored locally on your system, then as far as I know the only way would be to add it as an attachment. Whether or not the recipient sees it within the message body would depend on the settings in his own email client.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Yes, just as side note the CID is defined as Content-ID in RFC 2111

It works a little different depending on what you automate, but the general idea here is the image URLs you use with cid: prefix locate their target file in the mime attachments instead of the internet. Whatever you tried earlier most probably failed, when you used file names or file URLs, URLs to internet resources will also show a logo but will be blocked as they are both signaling to the server serving the image, when a mail requesting the logo is opened. This alone is against some privacy laws and of course, you could even get more info out of such mail client requests of your server/homepage files by individualizing the URLs.

A typical message of the Outlook mail client looks like this:
mailimages_nsh9id.png


There are setting in mail clients preventing to show images coming from external URLs and not embedded within the mail, there are settings letting clients always only see the text-only version of a mail. You can't prevent that, but test sending your mail to an account you configure to show images, even the simpler way to embed images using URLs to public images would work. The user needs to want to see emails with images anyway.

There's much more to it if you care for your emails not being categorized as spam, for example. But that's beyond just the image topic.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top