Making HTML email client with CleverComponents

News about TRichView, ScaleRichView, ReportWorkshop, RVMedia
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

No changes are needed, you just need to use new version of our components.

If you use Delphi XE7 or newer, everything works automatically.
For older versions, download DIMime, and activate {$DEFINE RVUSEDMIME} in rvHtmlViewImport.pas
xdbmw
Posts: 30
Joined: Sat Sep 24, 2011 11:31 pm

Post by xdbmw »

That's what I expected too. I tried the demo using Berlin 10.1, TRV 16.9.5 and CIS 8.3, enabled defines in RichViewAcrions.inc:

{$DEFINE USERVHTML}
{$DEFINE USERVHTMLVIEWER}
{$DEFINE USECLEVERCOMPONENTS}

and TRVAControlPanel.ClHTTP assigned to clHttp1.

No image will be downloaded. I found an EInvalidGraphic exception in TRVGraphicHandler.LoadFromFile (RVGrHandler.pas)
Example for filenames (2nd email type):

http://data.lidl.de/d/d.gif?aabbccddmswf
http://www.reichelt.de/bilder/Newslette ... 6_head.png
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

About compatibility with the new version of CleverComponents: add clEmailAddress in "uses" of main.pas, the function GetEmailAddressParts is moved in this unit.

About the image files.
1) Some handled exceptions may occur while loading, they are visible only in IDE
2) The link http://data.lidl.de/d/d.gif?aabbccddmswf does not return an image.
The second link returns the correct PNG, so I do not know why it does not work in your case. Please recheck in the next update, it will include rewritten connections between RichViewActions and spell checkers and downloaders.
It will be uploaded in the beginning of the next week.
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

In the new version of TRichView, CleverComponents can be used by RichViewActions without modifying inc-files.
The components for integration CleverComponents and these demo projects are included in the TRichView installer.

Currently, this update is available for registered users of TRichView, but we plan to update the public trial in the next week.

However, you are right, there is a problem with loading external images in HTML.
The demo has TclHttp component on the email editing form, but it is used only when importing (pasting) files while editing the message.
I made changes, so not it is used when loading HTML from email message as well. I sent changes to you by email, these changes will be included in the next update.
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I removed the link to source code of these demos, because they are included in the new version of TRichView installer.
See the folder ThirdParty\CleverComponents\Demos\
Post Reply