pop before smtp

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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)?


Re: pop before smtp

Kees wrote:
Quoted text here. Click to load it
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?


Re: pop before smtp

Kees wrote:
Quoted text here. Click to load it


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.

Re: pop before smtp

Quoted text here. Click to load it

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.

Quoted text here. Click to load it

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_open( "INBOX" username, password )
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.

Re: pop before smtp


on 11/04/2005 04:50 PM Kees said the following:
Quoted text here. Click to load it

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


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:



Manuel Lemos

Metastorage - Data object relational mapping layer generator

PHP Classes - Free ready to use OOP components written in PHP

Site Timeline