Hi,
I use this code:
____________________________________
Sub SendEmailHTML()
Dim olApp As Outlook.Application
Dim olMail As MailItem
Set olApp = New Outlook.Application
Set olMail = olApp.CreateItem(olMailItem)
With olMail
.to = "aaa@bbb.com"
.Subject = "Trial"
'.HTMLBody = "<html><body><img src="" .Display
End With
Set olMail = Nothing
Set olApp = Nothing
End Sub
____________________________________
That works fine because it lets me create an email in which the image is displayed in the body when it is opened (i.e. the reader see immediately the image). The problem is that in this way the image is on the internet and the PC must be connected in order to see the image. I would like to "insert the image" itself in the mail in order to make the email "complete" with no need for external internet access. I tried with the command
.Attachments.Add "C:\ball.gif", olByValue, , "Attachment"
but the problem is that the image now is not shown immediately in the message body but it is an attachment that the reader has to click.
Does anyone know the correct syntax to insert the image in the email (like attachments.add) but make it appear directly in the message body?
Thanks a lot!
Andrea
I use this code:
____________________________________
Sub SendEmailHTML()
Dim olApp As Outlook.Application
Dim olMail As MailItem
Set olApp = New Outlook.Application
Set olMail = olApp.CreateItem(olMailItem)
With olMail
.to = "aaa@bbb.com"
.Subject = "Trial"
'.HTMLBody = "<html><body><img src="" .Display
End With
Set olMail = Nothing
Set olApp = Nothing
End Sub
____________________________________
That works fine because it lets me create an email in which the image is displayed in the body when it is opened (i.e. the reader see immediately the image). The problem is that in this way the image is on the internet and the PC must be connected in order to see the image. I would like to "insert the image" itself in the mail in order to make the email "complete" with no need for external internet access. I tried with the command
.Attachments.Add "C:\ball.gif", olByValue, , "Attachment"
but the problem is that the image now is not shown immediately in the message body but it is an attachment that the reader has to click.
Does anyone know the correct syntax to insert the image in the email (like attachments.add) but make it appear directly in the message body?
Thanks a lot!
Andrea