Board index » delphi » contenttype=multipart/alternative question

contenttype=multipart/alternative question

When I send a multipart email - the first messagepart is getting rebuilt by
whatever is in the second messagepart.

Example - if I write the following

idmessage.messageparts[0].contenttype = 'text/plain'
idmessage.messageparts[0].body.text = 'test'
idmessage.messageparts[1].contenttype = 'text/html'
idmessage.messageparts[1].body.text = '<html><body>red</body></html>'

the result in the email is

part 1 text = 'red'
part 2 text = '<html><body>red</body></html>'

the result should be

part 1 text = 'test'
part 2 text = '<html><body>red</body></html>'

I am using Indy 8.0.25 in D6.
Anyone know how to fix this?

Gerald

 

Re:contenttype=multipart/alternative question


Quote
"Gerald Morris" <g...@dataforcesoftware.com> wrote in message

news:3eea08b2$1@newsgroups.borland.com...

Quote
> I am using Indy 8.0.25 in D6.

You are using a very outdated version of Indy.  You should upgrade before
continuing.  The current version of Indy is 9.0.0.13

Gambit

Re:contenttype=multipart/alternative question


I upgraded to 9.0.0.13.
Still get the same problem.
I create the two idtext parts (text/plain and then text/html.)
Indy uses the content of the second idtext (the text/html) to recreate the
text in the first part (the text/plain) part when I send the message.

Gerald

"Remy Lebeau (TeamB)" <gambi...@yahoo.com> wrote in message
news:3eea1570$1@newsgroups.borland.com...

Quote

> "Gerald Morris" <g...@dataforcesoftware.com> wrote in message
> news:3eea08b2$1@newsgroups.borland.com...

> > I am using Indy 8.0.25 in D6.

> You are using a very outdated version of Indy.  You should upgrade before
> continuing.  The current version of Indy is 9.0.0.13

> Gambit

Other Threads

1. TIdMessage.Messageparts.Items[i].ContentType

2. L.EGAL C.A.B.L.E TV DE-S.C.R.A.M.B.L.E.R ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddbbbbbbbbbbbbbbbbbbbbhbgbbbbbbbbbbbbbffffffffffffffffffffffffffffffffffffffffffffffffffffffffffqqqqqqqqqqqqqqqqqqqqq2qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzz

3. simple PARADOX Question ----------------------------------------------------------------------------------

4. ++ Meet More Women Easily With Pheromones ++ frrrtttyyyyyyyyyyyyyyyyyyyyyyyyjjjjjjjjjjjjjnnnnnccccnnnnnbbbbbbbbbbbbbbhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhffffdsddddddd 488 [1/2]

5. +++GET YOUR FREE PENTIUM CELERON-300+++____________________________________________________________________________________________rtyu4598rut oiwty etijew u65her iuer

6. !!!!!!!!!!!!!!!!!!!! PROGRAMS FOR SALE !!!!!!!!!!!!!!!!!!!!????????????????????????????????????????????????????????????????????????????????????????????????

7. DBNavigator HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

8. ** EVIDENCE ELIMINATING SOFTWARE** dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd 2587 [1/2]

9. ++ Meet More Women Easily With Pheromones ++ frrrtttyyyyyyyyyyyyyyyyyyyyyyyyjjjjjjjjjjjjjnnnnnccccnnnnnbbbbbbbbbbbbbbhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhffffdsdddddddddddddddddddddeee44444deeeeyyyuyp 4151 [1/2]

10. ALERT- - Rid your PC of Illegal Images rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr