...

View Full Version : PHP and POP3 Mailbox



piz
07-05-2002, 03:07 AM
Hi!

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.

Flamerule
07-05-2002, 08:45 AM
pop3 documentation:
http://www.php.net/manual/en/ref.imap.php

Sendmail documentation
http://www.php.net/manual/en/ref.mail.php

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

whackaxe
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

piz
07-05-2002, 12:53 PM
Thx.

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

closer
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.

-Scott

Íkii
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