Page 1 of 1

Picture not visible in email

Posted: Wed Jun 04, 2014 5:54 am
by retwas
Hi,

I use the last version of TRichView on Delphi XE2.
When I sent a email, picture is not visible.

For exemple, on my sign, we not see the picture.

You can see result on the attached file

Image

Posted: Wed Jun 04, 2014 10:34 am
by Sergey Tkachenko
Please send this email to richviewgmailcom

Posted: Thu Jun 05, 2014 6:37 am
by retwas
Sergey Tkachenko wrote:Please send this email to richviewgmailcom
Ok I will email to this adress

Posted: Thu Jun 05, 2014 11:04 am
by Sergey Tkachenko
I received your email sample.

You simply assigned HTML to a plain text message.
Well, at least Windows Live Mail understands that this is HTML, not a plain text.

But normally, HTML emails are created in a different way. It must contain HTML and images encoded as MIME. References to images from HTML must be created in a special way.
Examples:
http://www.trichview.com/forums/viewtopic.php?t=11 - using Indy
http://www.trichview.com/forums/viewtopic.php?t=4123 - using CleverComponents

Posted: Fri Jun 06, 2014 2:18 pm
by retwas
Thanks I try with mime demo but I have a problem on procedure "OnSaveImage2".

Code: Select all

var gr: TGraphic;
    bmp: TBitmap;
begin
  if SaveFormat<>rvsfHTML then
    exit;
  if not (Graphic is TJPEGImage) and not RV_IsHTMLGraphicFormat(Graphic) then begin
    bmp := TBitmap.Create;
    try
      [b]bmp.Assign(Graphic);[/color]
    except
I have error
impossible d'affecter tjpegimage à tbitmap
who mean, can't affect tjpegimage in tbitmap, I have same error with png ..

Thanks