Sending HTML Email

C

Curtis Stevens

Is it possible to send html email and have it look correctly in gmail for
example? I get html emails from others to my gmail and it looks right.
Gmail has those links at the top that you click on to view the images in the
email. But when I copy & past html into the email, it puts all the images as
attachments and does not look like it should. I can send it to myself or to
a Yahoo email and looks just fine.

Thanks
Curtis
 
R

Roady [MVP]

Where are these pictures located?
Instead of copying/pasting the HTML, use;
Insert-> File-> select HTML-file-> drop down arrow on Insert button-> Insert
as Text
 
C

Curtis Stevens

I'm using Outlook 2007 & could not find what you described.

Also, I create these emails through my database and use Outlook 2007 to send
them. Here is the vbcode:

Dim objoapp As Object
Dim objOMessage As Object
Dim txtDir As String
Dim fso As Object
Dim ts As Object
Dim txtbody As String
Dim mydb As DAO.Database, myrec As DAO.Recordset

Const olMailItem = 0
txtDir = "LOCATION OF FILE"

Set objoapp = CreateObject("Outlook.Application") 'created the
application here
Set objOMessage = objoapp.CreateItem(olMailItem) ' and last here is
an Mail Item
Set fso = CreateObject("Scripting.FileSystemObject")
Set ts = fso_OpenTextFile(txtDir & "NAMEOFFILE.html", 1)

txtbody = ts.ReadAll

With objOMessage
.to = Me.EMAIL
.Subject = "SUBJECT"
.Display
End With
 

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