View Full Version : PHP and POP3 Mailbox

07-05-2002, 03:07 AM

Is there any way to manage a POP3 Mailbox with checking, reading andsending mails with PHP?

Someone knows where I can Documantation about this?

Thx a lot!

Saludo, Piz.

07-05-2002, 08:45 AM
pop3 documentation:

Sendmail documentation

I know the documentation of the php manual is not always clear but it has everything you need.

07-05-2002, 09:53 AM
i think you need a special library for using pop3. be aware that recieving mail is pop3 and sending it is sendmail
to send mail just use this function(*nix systems only i think

mail("sendto@sentit.com", "subject", "the message\n this is sendmail", "from: nowhere@nowhere.com")
notice the "from" field at the end, this is one of the additional headers, these can be used to describe differnt parts of the mailing process like the mailer, the mailer version nand all diferntt types of things. and it can be used to change to from field. this is why some hosts (and nearly all the free ones) dont have smtp or pop3 support with php. hope that helps

07-05-2002, 12:53 PM

I know the mail-function, But I want to know how to create a simple web-mailer-skript.
(with receiving and sending mails)

I think you need a special library, too. But I am not sure.

Thx for the links. There you need an additional library, too.

Greetz, piz

07-05-2002, 09:02 PM
Yes, you have to have the IMAP library to use any of the IMAP functions. Um, you could however use fsockopen to establish a connection with a pop3 server and send commands to it that way. I wrote a small script a while ago that did this, i was not allowed to enable IMAP functions on our webserver.


07-07-2002, 07:13 PM
try this tutorial

Building a PHP based mail client (http://www.devshed.com/Server_Side/PHP/PHPMail)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum