| View previous topic :: View next topic |
| Author |
Message |
Salvador Huertas Guest
|
Posted: Mon Mar 28, 2005 1:36 pm Post subject: Images into a IdMessage |
|
|
Hi friends,
I have two problems writing images into a TIdMessage. I want write a message
type "text/html" and that the images be into the message.
I add one attachment and set ContentType to 'inline'
adjunto:=TAttachment.Create(IdMessage1.ContenParts,'file1.jpg');
adjunto.Contentype:='inline';
1/ I can`t find a Property named 'ContentID' and then how Can i do
<img src='cid:myID'>
2/ When i insert the attachment my message loss the type 'text/html' and
don`t understand the html code???
3/ How can I express the image's dimensions in 'cm'. The code 'Width="4.5cm"
don't like runs and the browser read in pixels?.
Thanks in advance!!
Salvador Huertas.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Mar 28, 2005 7:11 pm Post subject: Re: Images into a IdMessage |
|
|
"Salvador Huertas" <none@none> wrote
| Quote: | I add one attachment and set ContentType to 'inline'
|
That is not correct. The ContentType should be "image/jpeg". If you are
going to make the image "inline" then you need to assign that to the
ContentDisposition property instead.
| Quote: | 1/ I can`t find a Property named 'ContentID'
|
Then you must be using a very old version of Indy, because that property has
existed for the past 17 months now.
| Quote: | 2/ When i insert the attachment my message loss the type 'text/html'
and don`t understand the html code???
|
You probably did not set up the message properly in the first place. You
did not provide any details about that.
| Quote: | 3/ How can I express the image's dimensions in 'cm'.
|
You cannot. HTML only understands pixels.
Gambit
|
|
| Back to top |
|
 |
DonS Guest
|
Posted: Mon Mar 28, 2005 11:02 pm Post subject: Re: Images into a IdMessage |
|
|
| Quote: | 3/ How can I express the image's dimensions in 'cm'.
|
Try using CSS Style properties to set the dimension in html:
[img]...[/img]
hth...
|
|
| Back to top |
|
 |
|