Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How to show a logo inside an email ?

How to show a logo inside an email ?

How to show a logo inside an email ?

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

RE: How to show a logo inside an email ?

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:

<img src="http://myURL.MyLogo.jpg" />

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 Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: How to show a logo inside an email ?

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:

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close