[Indy] Retrieve attachments from email accounts [Edit]

Hi,
I tried to retrieve attachments list from some email accounts (gmail and my own), using both TidPop3 and TidIMAP4:
[POP3]
....
{code}
        MsgCont := POP3.CheckMessages;
        if MsgCont > 0 then
        begin
          for i := 1 to MsgCont do
          begin
            msg := TIdMessage.Create;
            if POP3.RetrieveHeader(i,msg) then
            begin
              TheEmail := lvEmail.Items.Add;
              TheEmail.Caption := msg.From.Address;
              TheEmail.SubItems.Add('No');
              msg.MessageParts.CountParts;
              if msg.MessageParts.AttachmentCount > 0 then
              begin
                TheEmail.SubItems[0] := 'Yeaahh';
                for J := 0 to msg.MessageParts.AttachmentCount - 1 do
                begin
                  if msg.MessageParts.Items[j] is TIdAttachment then
                    TheEmail.SubItems[0] := msg.MessageParts.Items[j].FileName;
                end;
              end;
            end;
            msg.Free;
          end;
          POP3.Disconnect;
{code}
....
[IMAP]
....
{code}
    IMAP4.Connect;
    try
      if IMAP4.SelectMailBox('INBOX') then
      begin
        MsgCont := IMAP4.MailBox.TotalMsgs;
        ListMsgs := IMAP4.MailBox.MessageList;
        IMAP4.RetrieveAllHeaders(ListMsgs);
        if MsgCont > 0 then
        begin
          for i := 0 to MsgCont - 1 do
          begin
            TheEmail := lvEmail.Items.Add;
            TheEmail.Caption := ListMsgs.Messages[i].From.Text;
            TheEmail.SubItems.Add('No');
            ListMsgs.Messages[i].MessageParts.CountParts;
            if ListMsgs.Messages[i].MessageParts.Count > 0 then
            begin
              TheEmail.SubItems[0] := 'Yeaahh';
              for j := 0 to ListMsgs.Messages[i].MessageParts.AttachmentCount - 1 do
              begin
                if ListMsgs.Messages[i].MessageParts.Items[j] is TIdAttachment then
                  TheEmail.SubItems[0] := ListMsgs.Messages[i].MessageParts.Items[j].FileName;
              end;
            end;
          end;
        end;
      end;
    finally
      IMAP4.Disconnect;
    end;
{code}
....

No attachments found. Can you help me?
Thanks
--
Alfredo Silvano

Edited by: Silvano Alfredo on Mar 4, 2013 1:53 PM

Edited by: Silvano Alfredo on Mar 4, 2013 2:04 PM
0
Silvano
3/4/2013 10:04:36 PM
embarcadero.delphi.winsock 1874 articles. 2 followers. Follow

8 Replies
2412 Views

Similar Articles

[PageSpeed] 7

Silvano wrote:

> if POP3.RetrieveHeader(i,msg) then
> begin
<snip>
> msg.MessageParts.CountParts;
> if msg.MessageParts.AttachmentCount > 0 then

TIdPOP3.RetrieveHeader() and TIdIMAP4.RetrieveAllHeaders() both only download 
an email's top-level headers, not any of the email's body data, which includes 
attachments, thus both the TIdMessage.Body and TIdMessage.MessageParts properties 
will be empty.  You can download headers as a starting point to discover 
which emails are present on the POP3/IMAP servers, but you have to actually 
download the email bodies, via TIdPOP3.Retrieve() and TIdIMAP4.(UID)Retrieve(), 
in order to process their content, including attachments.

--
Remy Lebeau (TeamB)
0
Remy
3/4/2013 10:26:16 PM
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> Silvano wrote:
> 
> > if POP3.RetrieveHeader(i,msg) then
> > begin
> <snip>
> > msg.MessageParts.CountParts;
> > if msg.MessageParts.AttachmentCount > 0 then
> 
> TIdPOP3.RetrieveHeader() and TIdIMAP4.RetrieveAllHeaders() both only download 
> an email's top-level headers, not any of the email's body data, which includes 
> attachments, thus both the TIdMessage.Body and TIdMessage.MessageParts properties 
> will be empty.  You can download headers as a starting point to discover 
> which emails are present on the POP3/IMAP servers, but you have to actually 
> download the email bodies, via TIdPOP3.Retrieve() and TIdIMAP4.(UID)Retrieve(), 
> in order to process their content, including attachments.
> 
> --
> Remy Lebeau (TeamB)

Thanks, now attachments are found, but 
{code}
                if ListMsgs.Messages[i].MessageParts.Items[j] is TIdAttachment then //always false, why??????
                  TheEmail.SubItems[0] := ListMsgs.Messages[i].MessageParts.Items[j].FileName;

{code}

check if MessageParts is TidAttachment is always false.
0
Silvano
3/4/2013 10:41:36 PM
Silvano wrote:

> Thanks, now attachments are found, but
>
> {code}
> if ListMsgs.Messages[i].MessageParts.Items[j] is
> TIdAttachment then //always false, why??????
> TheEmail.SubItems[0] :=
> ListMsgs.Messages[i].MessageParts.Items[j].FileName;
> {code}
> 
> check if MessageParts is TidAttachment is always false.

In what context?  Please show a more complete code snippet.

--
Remy Lebeau (TeamB)
0
Remy
3/4/2013 10:55:35 PM
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> Silvano wrote:
> 
> > Thanks, now attachments are found, but
> >
> > {code}
> > if ListMsgs.Messages[i].MessageParts.Items[j] is
> > TIdAttachment then //always false, why??????
> > TheEmail.SubItems[0] :=
> > ListMsgs.Messages[i].MessageParts.Items[j].FileName;
> > {code}
> > 
> > check if MessageParts is TidAttachment is always false.
> 
> In what context?  Please show a more complete code snippet.
> 
> --
> Remy Lebeau (TeamB)

The code is on first post.
Thanks
0
Silvano
3/4/2013 11:13:49 PM
Silvano wrote:

> The code is on first post.

You showed your TIdPOP3 code, not your TIdIMAP4 code.  Your TIdPop3 code 
was not using ListMsgs.  So again, I ask you to show your ACTUAL code that 
you are having trouble with.

--
Remy Lebeau (TeamB)
0
Remy
3/4/2013 11:45:47 PM
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> Silvano wrote:
> 
> > The code is on first post.
> 
> You showed your TIdPOP3 code, not your TIdIMAP4 code.  Your TIdPop3 code 
> was not using ListMsgs.  So again, I ask you to show your ACTUAL code that 
> you are having trouble with.
> 
> --
> Remy Lebeau (TeamB)

{code}
  try
    IMAP4.Connect;
    try
      if IMAP4.SelectMailBox('INBOX') then
      begin
        MsgCont := IMAP4.MailBox.TotalMsgs;
        ListMsgs := IMAP4.MailBox.MessageList;
        IMAP4.RetrieveAllMsgs(ListMsgs);
        if MsgCont > 0 then
        begin
          for i := 0 to MsgCont - 1 do
          begin
            TheEmail := lvEmail.Items.Add;
            TheEmail.Caption := ListMsgs.Messages[i].From.Text;
            TheEmail.SubItems.Add('No');
            ListMsgs.Messages[i].MessageParts.CountParts;
            if ListMsgs.Messages[i].MessageParts.Count > 0 then
            begin
              TheEmail.SubItems[0] := 'n. all. ' + IntToStr(ListMsgs.Messages[i].MessageParts.Count);
              for j := 0 to ListMsgs.Messages[i].MessageParts.AttachmentCount - 1 do
              begin
                if ListMsgs.Messages[i].MessageParts[j] is TIdAttachment then // always false!!!
                  TheEmail.SubItems[0] := ListMsgs.Messages[i].MessageParts.Items[j].FileName;
                if ListMsgs.Messages[i].MessageParts.Items[j] is TIdText then
                  TheEmail.SubItems[0] := ListMsgs.Messages[i].MessageParts.Items[j].DisplayName;
              end;
            end;
          end;
        end;
      end;
    finally
      IMAP4.Disconnect;
    end;
  except
    on e : Exception do
    begin
//        lvEmail.Clear;
      TheEmail := lvEmail.Items.Add;
      TheEmail.Caption := e.Message;
    end;
  end;
{code}
0
Silvano
3/4/2013 11:47:51 PM
Silvano wrote:

> IMAP4.RetrieveAllMsgs(ListMsgs);

You should be checking if RetrieveAllMsgs() returns True or False.  If False, 
the contents of ListMsgs may be incomplete.

> if MsgCont > 0 then
> begin
> for i := 0 to MsgCont - 1 do

You need to use ListMsgs.Count instead of MsgCont.

> for j := 0 to ListMsgs.Messages[i].MessageParts.AttachmentCount - 1 do

You need to use MessageParts.Count instead of MessageParts.AttachmentCount. 
 This is the root of your problem.  You are not looping through the MessageParts 
items correctly.

--
Remy Lebeau (TeamB)
0
Remy
3/5/2013 12:18:16 AM
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> Silvano wrote:
> 
> > IMAP4.RetrieveAllMsgs(ListMsgs);
> 
> You should be checking if RetrieveAllMsgs() returns True or False.  If False, 
> the contents of ListMsgs may be incomplete.
> 
> > if MsgCont > 0 then
> > begin
> > for i := 0 to MsgCont - 1 do
> 
> You need to use ListMsgs.Count instead of MsgCont.
> 
> > for j := 0 to ListMsgs.Messages[i].MessageParts.AttachmentCount - 1 do
> 
> You need to use MessageParts.Count instead of MessageParts.AttachmentCount. 
>  This is the root of your problem.  You are not looping through the MessageParts 
> items correctly.
> 
> --
> Remy Lebeau (TeamB)

Great!
Thanks a lot.
0
Silvano
3/5/2013 3:08:09 PM
Reply:

Similar Artilces:

Retrieve Attachments From Email ( Indy )
Hi, can you show me some example code how to use indy 9 in delphi 7 to retrieve attachments from email account ? eddy wrote: > Hi, can you show me some example code how to use indy 9 in > delphi 7 to retrieve attachments from email account ? Code examples are readily available online in various forums, blogs, etc. A simple web search should be able to find them. All you have to do is download an email into a TIdMessage component using TIdPOP3.Retrieve() or TIdIMAP4.Retrieve() (depending on which protocol you are using to access the account) and then loop through the TIdMessage.MessageParts collection looking for TIdAttachment objects. -- Remy Lebeau (TeamB) <eddy kurniawan> wrote in message news:601263@forums.embarcadero.com... > Hi, can you show me some example code how to use indy 9 in delphi 7 to > retrieve attachments from email account ? As Remy said you'll need to use a pop3 client to get the mail but once you've got it in TIdMessage, this is the basics of what you need: Msg.MessageParts.CountParts; For I := 0 to Msg.MessageParts.Count -1 do begin if Msg.MessageParts[I] is TIdText then begin //Do your thing.. end; if Msg.MessageParts[I] is TIdAttachment then begin //Do your thing end; end; thanks for your reply. i use imap protocol to access my email. i've got an example code from embarcadero archived site : begin IMAP4.Connect; ...

email attachments with Indy [Edit]
Hello - In former days with Delphi 7 I used the standard TIdAttachment.Create(IdMessage1.MessageParts, 'C:\MyFile.com'); to send an attachment with my email. Now with D2010 and Indy 10.5.5 I can get the email to work as well as ever, but I am unable to get the attachment to work. I have searched extensively and have tried various things such as Attachment := TIdAttachmentFile.Create(IdMessage1.MessageParts, 'C:\MyFile.com') and with TIdAttachment(IdMessage1.MessageParts) do begin ContentType := 'text/plain'; ParentPart := -1; Fi...

Problem with email attachments using Indy SMTP [Edit]
Can anyone tell me if something is wrong with the way I'm adding the html content or the attachment in the code fragment below? (Is this the right place for Delphi/Indy questions?) I have used this routine extensively. It seemed to work. Have recently discovered that Outlook recipients don't see html properly when an attachment is present. With no attachment, html content shows up in body of email as expected. If an attachment is present then the body is empty and there are two attachments, the intended one plus a .htm file containing the content. Is fine in gmail, yahoo, hot...

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...

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 H...

Delphi XE5 Android App dies preparing INDY email [Edit]
Can someone help me with the following code, it connects and authenticates the idsmtp connection but the app dies on the line:- idMessage1.Recipients.EMailAddresses:='colin@gmail.com'; Anyone had and overcome this problem? procedure TForm3.Button1Click(Sender: TObject); begin if idSMtp1.Connected = true then idsmtp1.Disconnect; idsmtp1.Connect; //THIS LINE WORKS idSmtp1.Authenticate; //THIS LINE WORKS idMessage1.Clear; //THIS LINE WORKS ...

Problem retrieving email from website iHost email account
I've been using Thunderbird for my personal email from the getgo and think it's the Greatest Thing on Earth. Unfortunately, the only problems I've experienced in the past have always related to my main ISP namely, SBC/Yahoo now AT&T/Yahoo. My current problem has to do with setting up my website iHost email accounts in Thunderbird. Needless to say, after wasting hours searching for answers and reading all the negative feedback on SBC/ATT, talking to my iHost Service provider, changing the port settings for my outgoing server (SMPT)'til I'm blue in the f...

Problem retrieving email from website iHost email accounts
I've been using Thunderbird for my personal email from the getgo and think it's the Greatest Thing on Earth. Unfortunately, the only problems I've experienced in the past have always related to my main ISP namely, SBC/Yahoo now AT&T/Yahoo. My current problem has to do with setting up my website iHost email accounts in Thunderbird. Needless to say, after wasting hours searching for answers and reading all the negative feedback on SBC/ATT, talking to my iHost Service provider, changing the port settings for my outgoing server (SMPT)'til I'm blue in the f...

Attaching emails as email attachments
Hi, Is this possible? I want to be able to attach a number of emails to another email and send it. A bit like you can do in Outlook where you can just drag the emails you want to send into the new email - they then appear as attachments with the envelope icon. I can attach other kinds of file without any problems, that all works fine. It's just attaching emails that's proving to be a problem. I'd like to do something like this: Dim oldEmail1 As New MailMessage(oldMailFrom1, oldMailTo1, oldSubject1, oldBody1) Dim oldEmail2 As New MailMessage(oldMailFrom2, oldMa...

Problem retrieving email from website iHost email account #2
I've been using Thunderbird for my personal email from the getgo and think it's the Greatest Thing on Earth. Unfortunately, the only problems I've experienced in the past have always related to my main ISP namely, SBC/Yahoo now AT&T/Yahoo. My current problem has to do with setting up my website iHost email accounts in Thunderbird. Needless to say, after wasting hours searching for answers and reading all the negative feedback on SBC/ATT, talking to my iHost Service provider, changing the port settings for my outgoing server (SMPT)'til I'm blue in the f...

Problem retrieving email from website ihost email account using Thunderbird
I've been using Thunderbird for my personal email from the getgo and think it's the Greatest Thing on Earth. Unfortunately, the only problems I've experienced in the past have always related to my main ISP namely, SBC/Yahoo now AT&T/Yahoo. My current problem has to do with setting up my website iHost email accounts in Thunderbird. Needless to say, after wasting hours searching for answers and reading all the negative feedback on SBC/ATT, talking to my iHost Service provider, changing the port settings for my outgoing server (SMPT)'til I'm blue in the f...

How to retrieve email from email account like anil@abc.com using vb.net
Hello to All, This is my first post. I am facing a problem in vb/asp .net that is we can send emails from asp/vb .net pages but we can't store mails that we are getting on email account like anil@abc.com  that is already happend in outlook. In short i want to develop this outlook facility. I want to store that emails on my local MSSQL Database. I want some concept sharing in this topic to solve this problem. Thanks in advance.   Regards, Anil http://www.webmultimediadesigner.com/ Hello, What storage medium are the e-mails stored in? If it is an exchange server, yo...

Print all email attachments (including sub emails and their attachments)
--____OBYWTHBCXVXOFGPGVPTL____ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Content-Disposition: inline; modification-date="Wed, 31 Aug 2010 07:20:44 -0400" QW55IHdheSB0byBwcmludCBhbGwgZW1haWwgYXR0YWNobWVudCBOQU1FUyBvbmx5IChpbmNsdWRp bmcgYW55IHN1YiBlbWFpbHMgYW5kIHRoZWlyIGF0dGFjaG1lbnRzKSBhbGwgYXQgb25jZSA/Pz8= --____OBYWTHBCXVXOFGPGVPTL____ Content-Type: multipart/related; boundary="____UDFRXZIVSCHQTEJGXAIR____" --____UDFRXZIVSCHQTEJGXAIR____ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 Content-Dis...

email attachments not attaching
I am authoring a simple online application form which allows a user to upload cover letter and/or resume. The files are then stored in a database and also emailed to the correct person as attachments. The files are being stored in the database with no problems but they are not being attached to the email properly. Below is the snippet of the code used to attach the files and send the mail:// Create the mail message System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage("noreply@mydomain.com", OfficeEmailHiddenField.Value, "Application", message); mail.IsBodyHtml = true; // Prepare attachements if (coverLetterFileUpload.HasFile) { // Get the cover letter file HttpPostedFile coverLetter = coverLetterFileUpload.PostedFile; // Creat the attachment from the cover letter document System.Net.Mail.Attachment coverLetterAttachment = new System.Net.Mail.Attachment(coverLetter.InputStream, Path.GetFileName(coverLetter.FileName), coverLetter.ContentType); // Attach the file mail.Attachments.Add(coverLetterAttachment); } if (resumeFileUpload.HasFile) { // Get the resume file HttpPostedFile resume = resumeFileUpload.PostedFile; // Create the attachment from the resume document System.Net.Mail.Attachment resumeAttachment = new System.Net.Mail.Attachment(resume.InputStream, Path.GetFileName(resume.FileName), resume.ContentType); // Attach the file ma...

superreview requested: [Bug 248244] editing mail filters in deferred account uses deferred to account : [Attachment 154114] proposed fix
David Bienvenu <bienvenu@nventure.com> has asked Scott MacGregor <mscott@mozilla.org> for superreview: Bug 248244: editing mail filters in deferred account uses deferred to account http://bugzilla.mozilla.org/show_bug.cgi?id=248244 Attachment 154114: proposed fix http://bugzilla.mozilla.org/attachment.cgi?id=154114&action=edit ------- Additional Comments from David Bienvenu <bienvenu@nventure.com> I really need to have a better name for GetRootFolder, so that it's clear we're getting the actual root, and not the place where we're deferring storage ...

superreview granted: [Bug 248244] editing mail filters in deferred account uses deferred to account : [Attachment 154114] proposed fix
Scott MacGregor <mscott@mozilla.org> has granted David Bienvenu <bienvenu@nventure.com>'s request for superreview: Bug 248244: editing mail filters in deferred account uses deferred to account http://bugzilla.mozilla.org/show_bug.cgi?id=248244 Attachment 154114: proposed fix http://bugzilla.mozilla.org/attachment.cgi?id=154114&action=edit ...

hotmail email accounts.... this version of firefox (3.1 beta 2) will not allow me to open emails that are in a hotmail email account
Name: lee hughes Email: lee405325ataoldotcom Product: Firefox Summary: hotmail email accounts.... this version of firefox (3.1 beta 2) will not allow me to open emails that are in a hotmail email account Comments: when you click on an email to open it, it does nothing it does not recognise the link to open the emial is even there. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2 (.NET CLR 3.5.30729) From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it. ...

superreview granted: [Bug 141089] [RFE] Titlebar should show account name instead of email address : [Attachment 313869] Show account name in the title bar
neil@parkwaycc.co.uk <neil@httl.net> has granted Bruno 'Aqualon' Escherl <aqualon@aquachan.de>'s request for superreview: Bug 141089: [RFE] Titlebar should show account name instead of email address https://bugzilla.mozilla.org/show_bug.cgi?id=3D141089 Attachment 313869: Show account name in the title bar https://bugzilla.mozilla.org/attachment.cgi?id=3D313869&action=3Dedit ------- Additional Comments from neil@parkwaycc.co.uk <neil@httl.net> > if (server.type =3D=3D "nntp") {=0D > // <folder> on <hostname>=0D >...

superreview granted: [Bug 141089] [RFE] Titlebar should show account name instead of email address : [Attachment 313937] Show account name in the title bar v2
Bruno 'Aqualon' Escherl <aqualon@aquachan.de> has granted superreview: Bug 141089: [RFE] Titlebar should show account name instead of email address https://bugzilla.mozilla.org/show_bug.cgi?id=141089 Attachment 313937: Show account name in the title bar v2 https://bugzilla.mozilla.org/attachment.cgi?id=313937&action=edit ------- Additional Comments from Bruno 'Aqualon' Escherl <aqualon@aquachan.de> (In reply to comment #10) > This is a -w diff really right? ;-) Not exactly *cough* ;-) Now the patch has a correct indentation. ...

Can't ready the email attachments which are inside email attachments.
Please tell me this can be fixed. In Thunderbird, when I get an email attachment and open it, it works fine. The email attachment opens and I can read it. However, if that email attachment has an email attachment inside it, it doesn't work. Thunderbird will not allow me to open the email attachment inside the email attachment. If I go over to Outlook and get it there everything works fine. I switched over to Thunderbird, because Outlook was pulling two and three copies of every email in my POP accounts. But if I have to choose between Outlook downloading multiple c...

TIdTraceRoute indy delphi xe2 [Edit]
i need trace the route of an ip, actually i am using the TIdTraceRoute indy component from the idTraceRoute unit. (delphi xe2) IdTraceRoute1:= TIdTraceRoute.Create(Self); IdTraceRoute1.ResolveHostNames:= True; IdTraceRoute1.ReceiveTimeout:= 5000; IdTraceRoute1.OnReply:= TraceRoute; IdTraceRoute1.Host:= 'www.google.com';//OR 172.16.0.13 (INTRANET IP) IdTraceRoute1.Trace; procedure TForm1.TraceRoute(ASender: TComponent; const AReplyStatus: TReplyStatus); begin Memo1.Lines.Add(AReplyStatus.FromIpAddress); end; but always return. 0.0.0.0 0.0.0.0 0.0.0.0 172.16.0.13 But in win cmd type command: tracert 172.16.0.13 the result is 1 * ** Request timed out 2 <1ms <1ms <1ms 172.16.253.209 3 <1ms <1ms <1ms 172.16.250.1 4 <1ms <1ms <1ms 172.16.0.13 exist another way of trace an ip maybe using windows api or using another indy component? actually i am using delphi-xe and Windows 7.!!!!!!!!!!!!!!!! Edited by: da lada on May 2, 2012 10:42 PM Edited by: da lada on May 3, 2012 7:26 PM Edited by: da lada on May 3, 2012 7:29 PM da wrote: > i need trace the route of an ip, actually i am using the TIdTraceRoute > indy component from the idTraceRoute unit. (delphi xe2) <snip> > but always return. > > 0.0.0.0 That means either the ICMP responses themselves reported no IPs, the responses could not be parsed by TIdTraceRoute, or TIdTraceRoute receiv...

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...

Send Email with Indy and SSL [Edit]
I must send a mail with Indy 10.0.1.1 and SSL This is my code: procedure SendEmail; var IdMessage: TIdMessage; SMTP: TIdSMTP; SSLHandler: TIdSSLIOHandlerSocketOpenSSL; IdUserPassProvider: TIdUserPassProvider; IdSASLCRAMMD5: TIdSASLCRAMMD5; IdSASLCRAMSHA1: TIdSASLCRAMSHA1; IdSASLPlain: TIdSASLPlain; IdSASLLogin: TIdSASLLogin; IdSASLSKey: TIdSASLSKey; IdSASLOTP: TIdSASLOTP; IdSASLAnonymous: TIdSASLAnonymous; IdSASLExternal: TIdSASLExternal; begin IdMessage := TIdMessage.Create(nil); try IdMessage.ContentType := 'text/plain'; IdMessage.Charset := 'UTF-8'; IdMessage.Body.Text:='Prova di invio tramite SSL'; IdMessage.Sender.Text := 'giovanellip@gmail.com'; IdMessage.From.Name := 'Paolo Giovanelli'; IdMessage.From.Address := 'giovanellip@gmail.com'; IdMessage.ReplyTo.EMailAddresses := 'giovanellip@gmail.com'; IdMessage.Recipients.EMailAddresses := 'giovanellip@gmail.com'; IdMessage.Subject := 'Prova invio SSL'; IdMessage.Priority := TIdMessagePriority.mpHighest; IdMessage.CCList.EMailAddresses := ''; IdMessage.ReceiptRecipient.Text := ''; IdMessage.BccList.EMailAddresses := ''; SMTP := TIdSMTP.Create(nil); try SSLHandler := TIdSSLIOHandlerSocketOpenSSL.Create(SMTP); SSLHandler.MaxLineAction := maException; SSLHandler.SSLOptions.Method := ...

printing emails on yahoo email account
Name: Peggy Cloninger Email: fishfunatxyzdotnet Product: Firefox Summary: printing emails on yahoo email account - does not print entire email Comments: When I access yahoo mail and try to print an email of more than one page length - a page is printed containg "Date:", "From:", "Subject:" and "To:" fields. Then another containing the first page of the message is printed and finally another with date and time at bottom is printed. If the message (and possible attachments) is longer than one page, only the first page is printed. Acc...

Web resources about - [Indy] Retrieve attachments from email accounts [Edit] - embarcadero.delphi.winsock

Attachment theory - Wikipedia, the free encyclopedia
Attachment theory describes the dynamics of long-term relationships between humans . Its most important tenet is that an infant needs to develop ...

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 ...

App Store - Attachments.me- Gmail inbox software to efficiently manage emails, automatically send/upload ...
Get Attachments.me- Gmail inbox software to efficiently manage emails, automatically send/upload files to cloud storage(Dropbox, Box, and G Drive), ...

Detach from Attachments! - YouTube
གློག་འཕྲིན་བརྒྱུད་ནས་ཡིག་ཆ་བགོ་འགྲེམས་མ་བྱེད། ཡིག་ཆ་བདེ་འཇགས་ལམ་ནས་བགོ་འགྲེམས་བྱེད་པར། Dropbox.com དང་ Ge.tt ཡང་ན་ GoogleDocs སོགས་བེད་སྤྱོད་ཐོངས། ...

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: 3/23/2016 9:59:03 AM