pop before smtp

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kees

    pop before smtp

    A mail sent from a host to my smtp server is refused. This happens
    because you have to connect to a pop server before you can use the
    smtp server.
    Does anybody have any code to achieve this (PHPmailer doesn't work)?

    Greetings,
    Kees
  • Dikkie Dik

    #2
    Re: pop before smtp

    Kees wrote:[color=blue]
    > A mail sent from a host to my smtp server is refused. This happens
    > because you have to connect to a pop server before you can use the
    > smtp server.
    > Does anybody have any code to achieve this (PHPmailer doesn't work)?
    >
    > Greetings,
    > Kees[/color]
    I do not recognize this problem. I had a problem with the sender of the
    mail. Some smtp servers seem to be configured to allow only messages
    from known domains to be sent and refuse to send it if the "from"
    address has a wrong domain (I encountered it in a company that had
    planned to register more domains than they eventually did.) Could this
    be a problem here?

    Kopje,
    Dikkie

    Comment

    • Jerry Stuckle

      #3
      Re: pop before smtp

      Kees wrote:[color=blue]
      > A mail sent from a host to my smtp server is refused. This happens
      > because you have to connect to a pop server before you can use the
      > smtp server.
      > Does anybody have any code to achieve this (PHPmailer doesn't work)?
      >
      > Greetings,
      > Kees[/color]

      Kees,

      Have you asked your hosting company? Perhaps they have another server
      for programs to use, for instance.

      Otherwise use the socket calls to log into the POP server and log out
      again before sending the mail. If you do this, I'd recommend a separate
      mail ID so you don't collide with the "real user" of the account.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • Tim Roberts

        #4
        Re: pop before smtp

        Kees <xxx@yyy> wrote:[color=blue]
        >
        >A mail sent from a host to my smtp server is refused. This happens
        >because you have to connect to a pop server before you can use the
        >smtp server.[/color]

        Right. They do that because POP requires a username and password, and SMTP
        does not. By logging in to POP, you verify that you are authorized to use
        their SMTP service. It opens up a worm hole that allows you to send SMTP
        mail for a short period.

        You don't have to actually READ your e-mail, you just have to log in.
        [color=blue]
        >Does anybody have any code to achieve this (PHPmailer doesn't work)?[/color]

        POP is a very easy protocol, but all you really need to do is login and
        logout. You use the imap_* functions to access it.

        imap_close(
        imap_open( "{server.domain .com:110/pop3}INBOX" username, password )
        );
        --
        - Tim Roberts, timr@probo.com
        Providenza & Boekelheide, Inc.

        Comment

        • Manuel Lemos

          #5
          Re: pop before smtp

          Hello,

          on 11/04/2005 04:50 PM Kees said the following:[color=blue]
          > A mail sent from a host to my smtp server is refused. This happens
          > because you have to connect to a pop server before you can use the
          > smtp server.
          > Does anybody have any code to achieve this (PHPmailer doesn't work)?[/color]

          My ISP requires POP authentication before sending. I use this class to
          solve that problem as it supports POP before SMTP authentication as you
          need:



          I use and recommend it to use in conjunction with this MIME message
          class that everything PHPMailer does and more. It can use the SMTP class
          above to deliver properly composed messages:




          --

          Regards,
          Manuel Lemos

          Metastorage - Data object relational mapping layer generator


          PHP Classes - Free ready to use OOP components written in PHP
          Free PHP Classes and Objects 2026 Versions with PHP Example Scripts, PHP Tutorials, Download PHP Scripts, PHP articles, Remote PHP Jobs, Hire PHP Developers, PHP Book Reviews, PHP Language OOP Materials

          Comment

          Working...