You are here: Re: pop before smtp « PHP Programming Language « IT news, forums, messages
Re: pop before smtp

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация