psystem
  • psystem
  • 51.5% (Neutral)
  • Newbie Topic Starter
9 years ago
I try to use ImportMailEx method but don't work.

The example images:

Private Sub btnSendMail_Click()

Dim oSmtp As New EASendMailObjLib.Mail
oSmtp.LicenseCode = "TryIt"

' test.htm contains the following content:
'this is an inline image

' test.gif will be imported as embedded image in the email
oSmtp.ImportMailEx "c:\my folder\test.htm"

' You save it to EML file or call SendMail method to send this email out
oSmtp.SaveMail "c:\test.eml"

End Sub

My test.htm file have one image. in c:\my pictures\test.gif. But dont work.
The test.eml haven't embedded image.
If I send calling SendMail, no image arrive.

ivan
  • ivan
  • 100% (Exalted)
  • Administration
9 years ago
If you open test.html by web browser, does this image display correctly?

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.