BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Images into a IdMessage

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Salvador Huertas
Guest





PostPosted: Mon Mar 28, 2005 1:36 pm    Post subject: Images into a IdMessage Reply with quote



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





PostPosted: Mon Mar 28, 2005 7:11 pm    Post subject: Re: Images into a IdMessage Reply with quote




"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





PostPosted: Mon Mar 28, 2005 11:02 pm    Post subject: Re: Images into a IdMessage Reply with quote




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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.