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
Picture not visible in email
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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
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
Thanks I try with mime demo but I have a problem on procedure "OnSaveImage2".
I have error
Thanks
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
who mean, can't affect tjpegimage in tbitmap, I have same error with png ..impossible d'affecter tjpegimage à tbitmap
Thanks