Skip to main content
August 12, 2013
Question

CFPOP & Attachment

  • August 12, 2013
  • 1 reply
  • 1184 views

Hi,

How can i get the attachment files from a email?

I'm using the following code:

<CFPOP ACTION="GETALL"

       NAME="Message"

       MESSAGENUMBER="#URL.idMsg#"

       SERVER="server.mail.test"

       USERNAME="test"

       PASSWORD="teste"

       ATTACHMENTPATH="f:\temp\email\">

But all the times i got the file f:\temp\email\winmail.dat.

How can i get the attachment file like pdf, xml and other?

Thank's

This topic has been closed for replies.

1 reply

p_sim
Participating Frequently
August 12, 2013
August 12, 2013

There is no exemple that save the attachment. Do you have one exemple to send?

Thanks!

p_sim
Participating Frequently
August 13, 2013

Thank you for your help.

I really read the full text, but all i got is a winmail.dat file.

If i use the generateUniqueFilenames i got file like winmail.dat, winmail1.dat, winmail2.dat, winmail3.dat

How can i extract the attachment file from winmail.dat?

Have you made a script that downloads the real attachment using pop?

Can you help?

Thank!


Not sure why you got .dat file. I sent a PDF; and I received a PDF.