Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mail and HTML Pictures
Message
From
16/09/2003 11:12:23
 
 
To
11/09/2003 10:24:23
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00828154
Message ID:
00829432
Views:
18
Efrain,

in your HTML file that you read with a low-level FREAD, where are pointing your A HREF to your images?

The HTML is probably trying to find the images in a place they can't find. If you have access to a ftp server I'd upload them there. Then in the HTML file just refer to the image just uploaded on the server with a path to the full URL.

Hope this helps,

Yanick

>Hello:
>
>I am developing an application which involves an email services. I apply the following lines to send a HTML by email. Everything works fine except for the images attached to the HTML page.
>
>*=========This section reads the source file (HTML)
>tr=FOPEN(VarReport,0)
> gnEnd = FSEEK(tr,0,2)
> gnBof = FSEEK(tr,0)
> Varcontent = Fread(tr,gnEnd)
>=FCLOSE(tr)
>*=========This section creates the Object and defines the namespaces
>oEMail = CREATEOBJECT("Outlook.Application")
>oNameSpace = oEMail.GetNameSpace("MAPI")
>*=========This section creates the Item and assign the information in the HTMLBody
>oItem = oEmail.CreateItem(0)
>
>oItem.subject="Policy Services: "+VarReport
>oitem.HTMLbody = VarContent
>*=========This section attach all those files found in the .\_FILES\*.*
>IF NOT EMPTY(VarAttachment )
> tx=ADIR(GDir,VarAttachment+"*.*")
> FOR tw=1 TO tx
> oAttachment = oItem.Attachments.Add(VarAttachment+GDir(tw,1))
> NEXT tw
>ENDIF
>*=========Defines the recipient
>
>oitem.Recipients.Add("ECCMine")
>*=========Sends and destroys it
>oitem.Send
>oEmail=null
>
>The mail is received but the images are blanked. The format is ok.
>What is wrong in this picture?
>
>Thanks
>
>Efrain Contreras
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform