Problems sending emails with attachments in Indy SMTP in Delphi 2009

Hi,
I'm working with Delphi 2009 fully updated (12.0.3420.21218 with Update Pack 3), and I had the original version of the Indy 10.2.5. All attachments were going with a file name ATT000043.dat, instead of the correct name. I updated to the latest Indy from the Dev Snapshot, and it went to version 10.5.7. However, now the attachment does not appear as an attachment at all, the the message appears as:

This is a multi-part message in MIME format

--HF2WOHttwwLp1TZg=_wwY6H2qbRC0RDTyU
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,
This is a test message.
Tks

--HF2WOHttwwLp1TZg=_wwY6H2qbRC0RDTyU
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment

VmVyc+NvIDIuMC41LjENCiAgLSBDb3JyaWdpZG8gbyBlcnJvIHF1ZSBhIHRhYmVsYSB0c3ZfZW52
aW9fZW1haWwgZmljYXZhIGxvY2tlZCBwcm92b2NhbmRvIGVycm8gbm8gZW52aW8gZGUgZS1tYWls
cyAobm8gU3liYXNlKQ0KVmVyc+NvIDIuMC41LjANCiAgLSBJbXBsZW1lbnRhZG8gZW52aW8gZGUg
Y/NwaWEgb2N1bHRhIGRlIGUtbWFpbCBwYXJhIG8gZ2VzdG9yLCBjb25mb3JtZSBjb25maWd1cmFk
byBwLyBjYWRhIHRpcG8gZGUgZS1tYWlsDQpWZXJz428gMi4wLjMuNw0KICAtIENvcnJpZ2lkbyBv
IGVycm8gcXVlIG8g+mx0aW1vIGRpYSBkYSBzdWJzdGl0dWnn428gbuNvIGVyYSBjb25zaWRlcmFk

I'm lost on how to fix this. Can anyone help me, please?
Tks
Pascal
0
Pascal
3/22/2010 2:40:03 PM
embarcadero.delphi.tools 5366 articles. 1 followers. Follow

2 Replies
735 Views

Similar Articles

[PageSpeed] 11

Pascal, Jr. Batzli wrote:

> I'm working with Delphi 2009 fully updated (12.0.3420.21218 with
> Update Pack 3), and I had the original version of the Indy 10.2.5.
> All attachments were going with a file name ATT000043.dat, instead of
> the correct name. I updated to the latest Indy from the Dev Snapshot,
> and it went to version 10.5.7. However, now the attachment does not
> appear as an attachment at all, the the message appears as:

Depends on what's in the Content-type header, but could it be related
to the following:
https://forums.embarcadero.com/thread.jspa?messageID=222713&tstart=0#222713

-- 
Pieter

"A low voter turnout is an indication of fewer people going to 
 the polls." -- George W. Bush
0
Pieter
3/22/2010 6:28:52 PM
The link below links the problem and the solution for the bug:
http://forums2.atozed.com/viewtopic.php?f=7&t=4180&start=0&st=0&sk=t&sd=a
Tks so much for everyones time!
Pascal
0
Pascal
3/23/2010 9:26:41 PM
Reply:

Similar Artilces:

sending emails with attachement delphi 2009
Hi, I have a problem, I'm using delphi 2009, I made a small application that uses TIdsmtp to send mails, for attachments I'm using TIDAttachmentFile class, like with TIdAttachmentFile.Create(IdMessage1, 'c:\image1.jpg') do begin ContentType := 'image/jpeg'; FileName := 'image1.jpg'; end; SMPT.send(IdMessage1); If I dont use attachment it works fine, but with attachemtns I'm getting email with some dummy name for attachemnt like ATI1284765.dat (if I change file extension to jpg it's ok then, it's that pictu...

Delphi 2009 / indy 10 html email unicode problem
I have updating an email application to delphi 2009 from delphi 2006. I now have the problem that html emails in in cyrrilic or greek are not send correctly. The code I used is: with IdMessage do begin clear; IsEncoded := true; Charset := 'utf-8'; ContentType :='multipart/alternative'; Encoding := meMime; UseNowForDate := true; Subject := MailSjabloon.Subject; From.Name := MailSjabloon.AfzenderNaam; From.Address ...

A problem to send email using Smtp
I have a proble to send an email from asp.net I do the following code to send an email: MailMessage mail=new MailMessage(); mail.From="test@server.com"; mail.To="myemailaddress@server.com"; mail.BodyFormat=MailFormat.Html; mail.Subject="testing..."; mail.Body="cool"; SmtpMail.SmtpServer="localhost"; SmtpMail.Send(mail); But I dont' receive an email when I use this method. Why is that? How can I send an email? Thanks in advance! check and see if.. -your client-side code has no errors -you imported the S...

Converting Delphi 2007 Indy 10.2.3 to Delphi 2009 Indy 10.5.5 [Edit]
Hello, I am currently attempting to port over a Delphi 2007 project that uses Indy 10.2.3 (very successfully) to Delphi 2009 and Indy 10.5.5 (I just got the latest development build this morning). I think I am running into an encoding issue, but am not sure. Specifically, IDHTTP with SSL calls an old CGI and the CGI returns a .zip file and I then save it to the disk. In 2007 and before this worked perfectly. In 2009, it is not. Here is the examples of the 2 different results (though cut way short in the post) I am getting back: 2007: 'PK'#3#4#$14#0#0#0#8#0'rLQ9žrPb€'#0...

Indy IdHMACSHA1 different results in Delphi 2007 and Delphi 2009
Hello newsgroup A test of the IdHMACSHA1 encryption method shows different results, and I am not sure if there is an error in my code or in the Indy code shipped with Delphi 2009. The Delphi 2007 version works in an application which communicates with Amazon Web Services and so it seems to be the correct one. Any suggestions are very welcome, maybe I just need to download a newer version of Indy? program Test; {$APPTYPE CONSOLE} uses IdHMACSHA1, IdCoderMIME, IdGlobal, SysUtils; function Base64Encode(const Input: string): string; begin Result := TIdEncode...

Indy SMTP error in Delphi 2009
Hi, a customer of mine gets the following error message: exception class : ERangeError exception message : Range check error. IdGlobal 5220 CharIsInSet IdGlobalProtocols 611 IndyWrapText IdHeaderList 214 TIdHeaderList.FoldLine IdHeaderList 191 TIdHeaderList.FoldAndInsert IdHeaderList 310 TIdHeaderList.SetValue It happens when setting a return receipt: FMessage.Headers.Values['Return-Receipt-To'] := AFromEmail; Does anybody have an idea, where the problem comes from? cu Christian "Christian Kaufmann" <christian.kau...

Problems
Hi; We have a software developed in the Delphi 2009 and we do NOT use the runtime themes. So, the option: Projetct / Options / Application / Enable Runtime Themes is UNCHECKED. When I'm on the Delphi 2009, it's all right. The problem is when I use the Delphi 2010. The same configuration (Projetct / Options / Application / Enable Runtime Themes is UNCHECKED). The form editor (IDE) insists on show the forms with the current Windows theme. I don't like this, I want the runtime themes off while I'm programming and editing my forms. How can I solve it? Thanks to...

Sending email w/ attachments with Delphi 2?
Does anyone know if there is a version of Indy or any other component that would enable an application written with Delphi 2 to send email with attachments? The references I've come up with just report problems and limitations with it so I'm wondering if anyone knows of something more likely to work. I'm afraid you have to look here: http://gohistoric.com/places/318695 Maybe you take a higher Delphi version and create a DLL with the functionality you want. Use the DLL in your Delphi 2 application. > {quote:title=Philip Caracena wrote:}{quote} > Does anyone know if t...

Sending email attachments through Outlook from Delphi programmatically
Is there some option that has to be set to allow this? I'm using ICS and it works fine for the email, but the attachment doesn't arrive. If I send to Outlook Express client, the attachment arrives. I'm sending through the same Exchange server to both clients. TIA -- -----Jon----- Am 29.01.2010 20:46, schrieb Jon Springs: > Is there some option that has to be set to allow this? > > > I'm using ICS and it works fine for the email, but the attachment doesn't > arrive. If I send to Outlook Express client, the attachment arrives. >...

Problem with the Delphi 2009 Translation Tool [Edit]
I am new to the Delphi 2009 translation tool. In order to familiarize with the Translation Tool I found the tutorial *"ITE and ITM Tutorial for Delphi 2005* (+http://edn.embarcadero.com/article/32974+) and used the proposed step by step approach to localize the example (from english to french): success! I tried the same procedure on another simple project: success again. Given these successes, I tried to apply the same procedure to a more complex project written originally in french (FRC) coded originally with D6 and ported to D2009 w/o any problem. It is a program that uses 8 forms, t...

Problem with IdIPMCastClient Indy 10 Delphi 2009
Migrating an app from Delphi 2007 to Delphi 2009, I have run into a problem with IdIPMCastClient. Set Active to false raise exception 10049 cannot set address. Close the socket or reset socket you get either 10022 or 10038 If you disconnect and connect again by the 3rd time you will not receive any data. Having trouble updating to lastest dev snapshot. Any suggestions Regards Mike > {quote:title=Michael DuPree wrote:}{quote} > Migrating an app from Delphi 2007 to Delphi 2009, I have run into a problem with IdIPMCastClient. > Set Active to false raise exception 10049 cannot ...

Delphi 2009 - incompatibile with 2006
Hi I was working on D2006 for a long time. I made a litle email client using INDY. When I open this projekt on new D2009 sending function won't work. The program become frozen on line "SMTP.Send(MailMessage);" Do you know what I have to do? Here is this function: function sendus(const typ,kn,tresc:pchar): boolean; stdcall; var smtp: tidsmtp; MailMessage: TIdMessage; ssl: tIdSSLIOHandlerSocketOpenSSL; begin result := true; ssl:= tIdSSLIOHandlerSocketOpenSSL.create; MailMessage := TIdMessage.Create; smtp := tidsmtp.Create; ssl.SSLOptions.Met...

Delphi 5 To Delphi 2009
I upgraded to Delphi 2009 from D5. The install says I can install Delphi and/or C++. Delphi installed OK but I see nothing of C++. What am I missing or does my upgrade not include C++? Thanks It depends on what you bought. If you bought Delphi 2009 only, that's what you get. If you bought Delphi 2009 and C++ Builder 2009 you get both. My guess is you got Delphi 2009 only. The simplest way to verify is look your invoice - it should say I would think. You could also go to members.embarcadero.com, login, then click on my registered products. There will be a textual description of...

Delphi 4 to Delphi 2009
Hello, Thanks to all who answered my previous question. That was a great help. And atlast our client agreed to upgrade our delphi version from 4 to Delphi 2009. *Sigh*. But before that, I need to give the estimation and cost regarding the migration to delphi 2009. Can anyone tell me is there any tool to migrate from delphi 4 to delphi 2009 or just I need to compile our Delphi 4 application in Delphi 2009. I have read from the delphi 2009 feature matrix that Delphi 1 through Delphi 2007 import is possible in delphi 2009. But i am not that sure considering the size of our application. ...

Web resources about - Problems sending emails with attachments in Indy SMTP in Delphi 2009 - embarcadero.delphi.tools

Attachment in adults - Wikipedia, the free encyclopedia
Attachment in adults deals with the theory of attachment in adult romantic relationships. Attachment theory was extended to adult romantic relationships ...

Facebook Allowing Page Admins To ‘Refresh Share Attachment?’
Facebook appears to have given page administrators the option of refreshing links that they share in posts on their pages . continued... New ...

Chronik-Fotos - Mama Bean - Unconditional Attachment - Facebook
Graphic design students at the University of North Texas asked this inspiring mama, Monica, to be the face of their ad campaign. The campaign ...

New Facebook Messages Only Provides an Online Attachment Viewing Feature for Microsoft Docs
In another move highlighting Facebook’s strategic relationship with investor Microsoft, the company has given the established office software ...

Documents.me - Documents from remote PC, MAC, Gmail attachments, Google Drive & Dropbox Docsync for iPad ...
Get Documents.me - Documents from remote PC, MAC, Gmail attachments, Google Drive & Dropbox Docsync on the App Store. See screenshots and ratings, ...

A bullet attachment that could save lives? - YouTube
It looks like a toy attachment for a gun, but this new device is intended to give suspects a chance to live if shot. CNN's Sara Sidner reports. ...

Invention of the Day: New ‘Alternative’ Gun Attachment May Prevent Shooting Deaths
The Ferguson Police Department is testing out a new device which they think might help prevent unnecessary shooting deaths. “The Alternative” ...

100th anniversary of Anzac landings brings home strong attachments
The commemoration of the 100th anniversary of the Anzac landings draws our attention to events that so many of us have a strong attachment to. ...

iPhones - Is Our Attachment To Smartphones A Bad Thing?
They cater to our basic human hunger for connection, so is our attachment to mobiles such a bad thing?

Apple not encrypting email attachments in iOS 7, security researcher claims
Apple's Mail app in iOS 7 is failing to encrypt email attachments, leaving user data vulnerable to hackers, a security researcher claims.

Resources last updated: 12/18/2015 9:36:24 AM