Article View: borland.public.cppbuilder.internet.socket
Article #1082Assertion Failure when sending email with attachment
From: JLoz
Date: Thu, 21 Jun 2007 00:07
Date: Thu, 21 Jun 2007 00:07
24 lines
1800 bytes
1800 bytes
I am trying to send an email with Indy 10 and I get an assertion error. This is the part of the code where I attach the file. TIdAttachmentFile * File = new TIdAttachmentFile(IdMessage1->MessageParts,"test.txt"); IdSMTP1->Connect(); IdSMTP1->Send(IdMessage1); if I delete File then the email gets sent but no attachement is received. The error message I get is EAssertion Failed with 'Assertion Failure IdGloba.pas Line 2528' The way the attachments are sent is different from what I was accostumed to do with Indy 9, and I had problems trying to use IdAttachementFile as it was not being recognized. I had to include the IdAttachementFile.hpp and I got it to compile, but I have not been able to send any attachments. What am I doing wrong? Thanks, JLoz
Technical Details
Message-ID:
<4679c15b$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3c4c62cd0a13406d,start X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "JLoz" <jfsierra@excite.com> From: "JLoz" <jfsierra@excite.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Assertion Failure when sending email with attachment Date: Wed, 20 Jun 2007 20:07:56 -0400 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 63.163.143.187 Message-ID: <4679c15b$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182384475 63.163.143.187 (20 Jun 2007 17:07:55 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail