|Subject:||Re: Smtp Html Attachments|
|Posted by:||Remy Lebeau \(TeamB\) (firstname.lastname@example.org)|
|Date:||Fri, 20 Jun 2008|
"W. Prinzjakowitsch" <c_e…@web.de> wrote in message
> my problem is that every attachment works well except for JPGs.
> When I attach a JPG file i get the error *connection reset by peer*
> and no mail is sent.
Which version of Indy 10 are you using? An earlier release had a bug in
TIdIOHandler.Write(TStream) when sending larger streams. That was fixed in
a later release.
> // PlainText, HTML, normal attachments, no HTML-related
If you upgrade to a newer version, you can make use of the new
TIdMessageBuilderHtml class to simplify your code, ie:
with TIdMessageBuilderHtml.Create do
PlainText.Text := sBody;
Html.Text := sHtmlBody;
Smtp Html Attachments posted by W. Prinzjakowitsch on Wed, 18 Jun 2008