SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <cfpop> tag isn't working

    I'm using the below code on FreeCFM.com, a free webhost:

    Code:
    <cfpop name="getmail" server="mail.hostname.com" username="user:domain.com" password="password" action="getheaderonly">
    
    <cfoutput query="getmail">
       <b>From:</b> #from#<br>
       <b>Subject:</b> #subject#<p>
    </cfoutput>
    I get this error:

    Error Diagnostic Information
    Connection Failure

    The error occurred while processing an element with a general identifier of (CFPOP), occupying document position (1:1) to (1:122).
    Any idea what kind of problem this error represents?

  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Odd: got an email notification saying someone had replied to this, but it's not here. Any idea as to what's wrong?

  3. #3
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not familiar with that tag. Could it be requiring a "port" option since it is a connection failure? My reference shows it defaulting to port 110 if not provided.
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  4. #4
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by TWTCommish
    Odd: got an email notification saying someone had replied to this, but it's not here. Any idea as to what's wrong?
    Someone said something like this:

    Don't use the <cfoutput> tag. Instead, do this:
    Code:
    <cfpop name="getmail" server="mail.hostname.com" username="user:domain.com" password="password" action="getheaderonly">
       <b>From:</b> #from#<br>
       <b>Subject:</b> #subject#<p>
    I remember seeing that about an hour ago. No idea why it's deleted, though.

    </offtopic>

  5. #5
    SitePoint Addict -TheDarkEye-'s Avatar
    Join Date
    Feb 2001
    Location
    canada
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry, i replied before but i didnt read your message correctly so i just deleted my post because i didnt have any time to edit it.

    i think the username field might be incorrect. it should just be a username, not user:domain.com.

  6. #6
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, that can't be it: contacted my host and that's the format it should be in. If the username were just "user", then it wouldn't know which account to look for, seeing as how I'm on a shared server.

    Thanks Quinn: I saw part of it from the notification too. westmich: according to the book I'm using, the code I posted should work, which is why I'm kind of stumped.

  7. #7
    SitePoint Addict ownersite's Avatar
    Join Date
    Jul 2001
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    TWTCommish,

    Have you used <CFPOP> on this server successfully in the past?

    Try setting up an account on your local machine (ie with Outlook or whatever email client you use) and see if you can connect to the mail server via that route. If not, you may get a more descriptive error message...
    F150online- 102,000 users strong and growing...
    Ownersite.com
    - tools to enhance vehicle ownership

  8. #8
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope, never used <cfpop> successfully anywhere. A bit new to ColdFusion, but I'm thoroughly enjoying it anyway. I'll try it on my local machine...hopefully I'll know what I'm doing.

  9. #9
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I looked it up in a different reference and the only difference I can see is that they don't use a query/name attribute in the output tag.

    <cfpop .... >
    <cfoutput>
    .....
    </cfoutput>
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  10. #10
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you sure? If so, could you provide an example? I don't believe I quite understand.

  11. #11
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by TWTCommish
    Are you sure? If so, could you provide an example? I don't believe I quite understand.
    If you're asking about my post, just use the same code you originally posted, but remove the query name attribute from the output tag.
    Code:
    <cfpop name="getmail" server="mail.hostname.com" username="user:domain.com" password="password" action="getheaderonly">
    
    <cfoutput>
       <b>From:</b> #from#<br>
       <b>Subject:</b> #subject#<p>
    </cfoutput>
    Instead of
    Code:
    <cfpop name="getmail" server="mail.hostname.com" username="user:domain.com" password="password" action="getheaderonly">
    
    <cfoutput query="getmail">
       <b>From:</b> #from#<br>
       <b>Subject:</b> #subject#<p>
    </cfoutput>
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •