Re: Problem sending email with Exchange Server

Giganews Newsgroups
Subject: Re: Problem sending email with Exchange Server
Posted by:  Feijó (fei…@x.suply.com)
Date: Wed, 14 Dec 2005

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> escreveu na mensagem
news:556BD7E874E5E240no.spam@no.spam.com...
>
> "Feijó" <fei…@x.suply.com> wrote in message
> news:9A6087C370E5E240fei…@x.suply.com...
>
> >        vMSG.Body.Text := aCritica.Text;
> <snip>
> >      html := TIdText.Create(vMSG.MessageParts);
>
> You should not be using the TIdMessage.Body property if you use the
> TIdMessage.MessageParts collection, and vice versa.  Use one or the other,
> not both.

I use the Body.Text only as temporary container for my HTM content, thats
why I clear it after

I just changed to an TStringList

> >      vMSG.Body.Clear;
>
> Why are you filling in the TIdMessage.Body only to clear it afterwards?

answered...

> > This work great with all smtp servers, but with Exchange the
> > content of msg body is: 'This is a HTML email, you need better
> > email reader.' All my text disapear!!!
>
> Please show the raw message data that Send() actually transmits over the
> socket.  Attach a TIdLog... component to the tIdSMTP, or use an external
> packet sniffer such as Ethereal http://www.ethereal.com).

here it is:

Recv 12/12/2005 14:05:45: 220 estancia.fireman.com.br <EOL>
Sent 12/12/2005 14:05:45: EHLO firedog<EOL>
Recv 12/12/2005 14:05:45: 250-estancia Hello
[10.0.0.7]<EOL>250-SIZE<EOL>250-AUTH LOGIN CRAM-MD5<EOL>250 OK<EOL>
Sent 12/12/2005 14:05:45: AUTH LOGIN<EOL>
Recv 12/12/2005 14:05:45: 334 VXNlcm5hbWU6<EOL>
Sent 12/12/2005 14:05:45: YWxlc3NhbmRyby5mZWlqb0BmaXJlbWFuLmNvbS5icg==<EOL>
Recv 12/12/2005 14:05:45: 334 UGFzc3dvcmQ6<EOL>
Sent 12/12/2005 14:05:45: MTIzNA==<EOL>
Recv 12/12/2005 14:05:45: 235 Authentication successful<EOL>
Sent 12/12/2005 14:05:45: RSET<EOL>
Recv 12/12/2005 14:05:45: 250 OK<EOL>
Sent 12/12/2005 14:05:45: MAIL FROM: <supor…@fireman.com.br><EOL>
Recv 12/12/2005 14:05:46: 250 OK <supor…@fireman.com.br> Sender ok<EOL>
Sent 12/12/2005 14:05:46: RCPT TO:<fei…@fireman.com.br><EOL>
Recv 12/12/2005 14:05:46: 250 OK <fei…@fireman.com.br> Recipient ok<EOL>
Sent 12/12/2005 14:05:46: DATA<EOL>
Recv 12/12/2005 14:05:46: 354 Start mail input; end with <CRLF>.<CRLF><EOL>
Sent 12/12/2005 14:05:46: From: "FireDog Server 3.01"
<supor…@fireman.com.br><EOL>Subject: FireDog Alerta - 19
=?ISO-8859-1?Q?M=E1quinas?= Ausentes<EOL>To:
fei…@fireman.com.br<EOL>Content-Type: multipart/alternative;
boundary="cyJVk0fPb2CN=_g8wvjUOhkhodetHLVYoj"<EOL>MIME-Version:
1.0<EOL>Date: Mon, 12 Dec 2005 14:05:46 -0200<EOL>X-Priority:
2<EOL>X-Mailer: FireDog Server<EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: This is a multi-part message in MIME format<EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: --cyJVk0fPb2CN=_g8wvjUOhkhodetHLVYoj<EOL>
Sent 12/12/2005 14:05:46: Content-Type: text/html<EOL>
Sent 12/12/2005 14:05:46: Content-Transfer-Encoding: quoted-printable<EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <html><EOL>
Sent 12/12/2005 14:05:46: <body bgcolor=3Dffffee><EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <style><EOL>
Sent 12/12/2005 14:05:46: #table { background-color: gold; }<EOL>
Sent 12/12/2005 14:05:46: #head { color: gold; background-color:
black; }<EOL>
Sent 12/12/2005 14:05:46: #line1 {background-color: silver; }<EOL>
Sent 12/12/2005 14:05:46: #line2 {background-color: gray; }<EOL>
Sent 12/12/2005 14:05:46: </style><EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: <table border=3D0 cellpadding=3D2 cellspacing=3D0
id=3Dtable><tr id=3D=<EOL>head><td colspan=3D2 align=3Dcenter><b>Ausentes
h=E1 +15 dias</td></tr=<EOL>><tr
id=3Dhead><td><B>Computador</td><td><B>=DAltimo Contato</td></tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>campeiro</td> <td>26/10/2005 =<EOL>
=<EOL>
=<EOL>
=<EOL>                                </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>cusco</td> <td>26/10/2005    =<EOL>
=<EOL>
=<EOL>
=<EOL>                              </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>cusco2000</td> <td>26/10/2005=<EOL>
=<EOL>
=<EOL>
=<EOL>                                  </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>cusco2003</td> <td>24/08/2005=<EOL>
=<EOL>
=<EOL>
=<EOL>                                  </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>cusco98</td> <td>02/06/2005  =<EOL>
=<EOL>
=<EOL>
=<EOL>                                </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>cuscow98</td> <td>02/06/2005 =<EOL>
=<EOL>
=<EOL>
=<EOL>                                </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>cuscowin98</td> <td>17/10/200=<EOL>5
=<EOL>
=<EOL>
=<EOL>                                  </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>cuscoxp</td> <td>26/10/2005  =<EOL>
=<EOL>
=<EOL>
=<EOL>                                </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>cyclop</td> <td>28/03/2003  =<EOL>
=<EOL>
=<EOL>
=<EOL>                              </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>defiant2000</td> <td>17/06/20=<EOL>05
=<EOL>
=<EOL>
=<EOL>                                    </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>defiant95</td> <td>12/09/2005=<EOL>
=<EOL>
=<EOL>
=<EOL>                                  </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>defiant98</td> <td>06/06/2005=<EOL>
=<EOL>
=<EOL>
=<EOL>                                  </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>defiant98se</td> <td>23/05/20=<EOL>05
=<EOL>
=<EOL>
=<EOL>                                    </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>estancia</td> <td>24/10/2005 =<EOL>
=<EOL>
=<EOL>
=<EOL>                                </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>guaipeca</td> <td>26/10/2005 =<EOL>
=<EOL>
=<EOL>
=<EOL>                                </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>guaipeca2003</td> <td>11/03/2=<EOL>005
=<EOL>
=<EOL>
=<EOL>                                    </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>guaipecaxp</td> <td>09/03/200=<EOL>5
=<EOL>
=<EOL>
=<EOL>                                  </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline1><td><b><font
color=3Dnavy>guasca</td> <td>20/06/2005  =<EOL>
=<EOL>
=<EOL>
=<EOL>                              </td> <tr><EOL>
Sent 12/12/2005 14:05:46: <tr id=3Dline2><td><b><font
color=3Dnavy>trator</td> <td>26/10/2005  =<EOL>
=<EOL>
=<EOL>
=<EOL>                              </td> <tr><EOL>
Sent 12/12/2005 14:05:46: </table><EOL>
Sent 12/12/2005 14:05:46: <br><br><br><b>FireDog =E9 produto integrante do
Fireman HelpDesk Soft=<EOL>ware<br><a
href=3Dhttp://www.fireman.com.br"www.fireman.com.br</a><EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: --cyJVk0fPb2CN=_g8wvjUOhkhodetHLVYoj<EOL>
Sent 12/12/2005 14:05:46: Content-Type: text/plain<EOL>
Sent 12/12/2005 14:05:46: Content-Transfer-Encoding: quoted-printable<EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: O Formato do email do FireDog =E9 em HTML,
recomendamos a leitura da m=<EOL>ensagem pelo Outlook, Mozilla ou
similar.<EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: --cyJVk0fPb2CN=_g8wvjUOhkhodetHLVYoj--<EOL>
Sent 12/12/2005 14:05:46: <EOL>
Sent 12/12/2005 14:05:46: .<EOL>
Recv 12/12/2005 14:05:46: 250 OK<EOL>
Sent 12/12/2005 14:05:46: QUIT<EOL>

thanks
Feijó

Replies

In response to

Re: Problem sending email with Exchange Server posted by Remy Lebeau (TeamB) on Tue, 13 Dec 2005