Skip to main content
August 12, 2013
Question

CFPOP & Attachment

  • August 12, 2013
  • 1 reply
  • 1187 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

If you read through it, there is a link to retrieve emails and save attachments.

http://livedocs.adobe.com/coldfusion/8/htmldocs/email_10.html#1096313