|
Posted by Tim Roberts on 11/06/05 02:53
Kees <xxx@yyy> wrote:
>
>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.
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.
>Does anybody have any code to achieve this (PHPmailer doesn't work)?
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.
Navigation:
[Reply to this message]
|