Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-05-2002, 02:07 AM   PM User | #1
piz
Regular Coder

 
Join Date: Jul 2002
Location: Barcelona
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
piz is an unknown quantity at this point
PHP and POP3 Mailbox

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.
piz is offline   Reply With Quote
Old 07-05-2002, 07:45 AM   PM User | #2
Flamerule
New Coder

 
Join Date: Jun 2002
Location: Paris, France
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Flamerule is an unknown quantity at this point
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.
__________________
I don't suffer from insanity, I enjoy every single minute of it!
Flamerule is offline   Reply With Quote
Old 07-05-2002, 08:53 AM   PM User | #3
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
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
PHP Code:
mail("sendto@sentit.com""subject""the message\n this is sendmail""from: [email]nowhere@nowhere.com[/email]"
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
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 07-05-2002, 11:53 AM   PM User | #4
piz
Regular Coder

 
Join Date: Jul 2002
Location: Barcelona
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
piz is an unknown quantity at this point
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
piz is offline   Reply With Quote
Old 07-05-2002, 08:02 PM   PM User | #5
closer
New to the CF scene

 
Join Date: Jul 2002
Location: Cedar Lake, IN
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
closer is an unknown quantity at this point
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
__________________
I think its right anyway.
closer is offline   Reply With Quote
Old 07-07-2002, 06:13 PM   PM User | #6
Ökii
Regular Coder

 
Join Date: Jun 2002
Location: UK
Posts: 577
Thanks: 0
Thanked 0 Times in 0 Posts
Ökii is an unknown quantity at this point
try this tutorial

Building a PHP based mail client
__________________
Ökii - formerly pootergeist
teckis - take your time and it'll save you time.
Ökii is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:06 AM.


Advertisement
Log in to turn off these ads.