Article View: borland.public.cppbuilder.internet.socket
Article #3912Re: Sending HTML mail with pictures using indy 9?
From: Remy Lebeau (TeamB)
Date: Thu, 19 May 2005 18:24
Date: Thu, 19 May 2005 18:24
41 lines
2783 bytes
2783 bytes
"Paw Suddergaard" <paw@easyflex.dk> wrote in message news:428c88d1$1@newsgroups.borland.com... > When recieving the email: <snip> > Where does the 3D come from and sometimes there are an = sign? The text is being encoded using the Quoted-Printable algorithm for transmission. That is perfectly normal. The 'Content-Transfer-Encoding' header for the text should be getting set to 'Quoted-Printable', which will tell the receiver that it needs to decode the text before displaying/saving it. > 1. Is it really nessecary to delete the templist? Yes, otherwise the memory is leaked. Unless your FindImagesInHTML() function is actually returning a TStringList that is owned elsewhere in code that you did not show which will free the TStringList later on. > Doesn't the VCL do this for me? No, it does not. > 2. catch(const Exception &) ?? Why can't i use catch(...)??? 99.9999% of the possible exceptions that can be thrown in the code you showed will be based on the Exception class. The only one that will not will be is if the 'new' operator fails, in which case a std::bad_alloc exception will be thrown instead. However, I'm not so sure about even that, since 'new' is allocating VCL objects, so Borland's VCL memory manager is being invoked instead of the C runtime memory manager instead, so the resulting exception will probably be VCL-based as well. Also, you did not specify which version of BCB you are actually using, but BCB6 changed how '...' handles VCL exceptions, so it is good practive to no longer use '...' to handle VCL exceptions. They should be caught explicitally. Gambit
Technical Details
Message-ID:
<428cd99f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<428c63af@newsgroups.borland.com> <428c6c9b$1@newsgroups.borland.com> <428c88d1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,31e2e9ad50e48b5c X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <428c63af@newsgroups.borland.com> <428c6c9b$1@newsgroups.borland.com> <428c88d1$1@newsgroups.borland.com> Subject: Re: Sending HTML mail with pictures using indy 9? Date: Thu, 19 May 2005 11:24:37 -0700 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <428cd99f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116527007 68.69.17.41 (19 May 2005 11:23:27 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail