Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    piz
    piz is offline
    Regular Coder
    Join Date
    Jul 2002
    Location
    Barcelona
    Posts
    246
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Paris, France
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    piz
    piz is offline
    Regular Coder
    Join Date
    Jul 2002
    Location
    Barcelona
    Posts
    246
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #5
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Cedar Lake, IN
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •