Picture not visible in email

General TRichView support forum. Please post your questions here
Post Reply
retwas
Posts: 39
Joined: Tue May 21, 2013 1:41 pm

Picture not visible in email

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send this email to richviewgmailcom
retwas
Posts: 39
Joined: Tue May 21, 2013 1:41 pm

Post by retwas »

Sergey Tkachenko wrote:Please send this email to richviewgmailcom
Ok I will email to this adress
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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
retwas
Posts: 39
Joined: Tue May 21, 2013 1:41 pm

Post 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
Post Reply