Hi,
I was told today by a phonecall from a german guy that THtmlSmtpCli
had a strange bug that drove him nuts since many weeks.
The bug is that sometimes the message text is missing.
This error seems to happen only with ContentType smtpPlainText,
after a mail with attachment was sent and subsequent mails
had no attachment (rather hard to catch :-).
One quick fix is to add the following line to
(OverbyteIcs)SmtpProt.pas:
procedure THtmlSmtpCli.PrepareEMail;
begin
if FContentType = smtpPlainText then begin
// FLineOffset was not reset properly after a mail with {AG 07/11/07}
// attachment was sent and subsequent mails had no attachment.
// To be sure initialize FLineOffset to zero.
FLineOffset := 0;
{ Strange but the user ask to send plain text message }
inherited PrepareEMail;
Exit;
end;
{ Nothing to do here }
end;
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be