• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFPOP and attachment

Contributor ,
Mar 16, 2010 Mar 16, 2010

Copy link to clipboard

Copied

I am trying to read mail and get the attchment.

then I use this code :

<cfset at_path=#getdirectoryfrompath(GetTemplatePath())# & "attach\">
<cfoutput>
     <cfpop action="GETALL" name="GetMsg" messagenumber="#form.mail_id#" attachmentpath="#at_path#" generateuniquefilenames="Yes" server="#form.server#" username="#form.UserName#" password="#form.pwd#">
</cfoutput>

I sent a mail with attachment to that email adress,

I can read the mail sent, but the attachment file is not written on the server adress #at_path#

Anybody can help ? Thanks, I do not see any mistake.

(used on CFMX V7)

Pierre.

TOPICS
Advanced techniques

Views

305

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 17, 2010 Mar 17, 2010

Copy link to clipboard

Copied

I will answer it myself :

here is what happens,

the attached file comes up to the server a long tilme after having read the mail.

When reading the mail, the attached file is not yet available.

I do not know yet how long time after it comes.

I will see it tomorrow.

But this seems very strange ?

Why this delay ?

On a normal Mail Agent, the attached file comes at same time.

I need to know what part does this delay ?

Thanks, if anyone have an idea.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 17, 2010 Mar 17, 2010

Copy link to clipboard

Copied

LATEST

I am sorry,

yesterday I did not see my attachment via my FTP.

And now I can see them at once.

So my question was wrong.

All is working fine.

The used code is good, and the function is good.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation