Send Email with image embedded

T

Thomas Kroljic

All,
I currently have some vba logic behind an Access form that sends out 1 or
mail email. I used some code that I got off of Tony Toews' website. What I'd
like to add to this code is the ability to include a graphic image (logo) at
the bottom of the email being sent out. How do I go about doing this? Is
there some vba code that tells the process to embed the image along with the
out going email?

Thank you,
Thomas
 
B

bcap

You cannot reliably control whether an image appears "embedded" in the email
or merely as an attachment. It's a function of whatever email client is
used to open the message.

The usual way of sending fancy formatted emails containing images and
whatever is to send them as HTML-formatted emails which link to images on
some web server. However, even this has gotten unreliable because recent
versions of Outlook, by default, refuse to download anything from the web.
It's a privacy thing: when an email client requests an image from a web
server, it is effectively telling the operator of the web server that you
have opened the email, which is actually none of their business.
 
T

Thomas Kroljic

bcap,
Thanks for responding. I do send, create, my email as html formatted
files in Access using vba. If I understand what you are saying is that any
email that I personally receive that has am image or logo is actually
pointing back to some server. It's not really embedded within the email file
that is sent or received.
I was hoping to include the company logo in emails sent out by our
Access application. So there is no way to really embed graphics without
having the graphics files located on some server?

Thomas
 
P

Pete D.

Best way in todays world would be to create a oulook form/template with your
graphic in it to use for sending these email. Use that form with access
adding text to it as needed. Problem is if it is going to be used by others
you must publish the form or have them add it to their outlook
forms/templates. You have the text problem solved in access so might try an
Outlook newsgroup for ideas on creating the form/templates to use. Pete D.
 
B

bcap

Thomas Kroljic said:
bcap,
Thanks for responding. I do send, create, my email as html formatted
files in Access using vba. If I understand what you are saying is that any
email that I personally receive that has am image or logo is actually
pointing back to some server. It's not really embedded within the email
file that is sent or received.

Correct, that is usually the case.
I was hoping to include the company logo in emails sent out by our
Access application. So there is no way to really embed graphics without
having the graphics files located on some server?

Thomas

You can try, but there's no guarantee that it will appear to the recipient
as you intended. I am not acquainted with the Tony Toews code you refer to,
but since you are creating HTML-formatted emails the VBA code should be
irrelevant, it's all down to the HTML that you use.

I suggest you manually create an HTML-formatted email with an embedded
image, send it to yourself, and then view the HTML source to see how the
image was embedded. Then you can do the same thing in the HTML for your
messages.

But, you are still dependent on the recipients (i) using a email client with
HTML support and (ii) having HTML turned on in their email client. Some
people don't like HTML email and prefer to see only plain-text emails, and
to them your HTML-formatted email is going to look like a load of junk (and
without an image!)
 
P

Pete D.

You make a good point, government computer now default to plain text only
when recieving with the ability to turn it back to html so we always add a
header line to the email to please switch back to html for viewing.
 
T

Thomas Kroljic

Pete D.

Thanks for your reply. I'll look at creating a form/templace in Outlook.
Never did that before. Probably worth learning. Thanks for the tip.

Thomas
 
T

Thomas Kroljic

bcap,
I'll try your suggesting on "manually" creating the proper HTML file
with the embedded grapphic and then I'll look at the actually code (html)
behind the page. It just might give me what I'm looking for. Thanks.

Thomas
 
G

gladys lane

Thomas Kroljic said:
bcap,
Thanks for responding. I do send, create, my email as html formatted
files in Access using vba. If I understand what you are saying is that any
email that I personally receive that has am image or logo is actually
pointing back to some server. It's not really embedded within the email
file that is sent or received.
I was hoping to include the company logo in emails sent out by our
Access application. So there is no way to really embed graphics without
having the graphics files located on some server?

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top