Results 1 to 6 of 6

Thread: PHP and Mail

  1. #1

    Thread Starter
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    PHP and Mail

    Ok, I'm fairly new to PHP. I've been using VB for over 10yrs, so I'm not new to programming. I've also been using HTML, ASP, and VBScript for quite some time. That said, does anyone know of a PHP script that will check an email account for new msgs and pull the body of the text (which would be either plain text or HTML). What I want to do is this: Have a PHP script that would check some email box (it would be dedicated sole for this purpose) grab any unread msgs there, parse out some data, and post the results to a MySQL database on my website. This would allow me to update the news on my wbsite A LOT faster than having to do it by hand (it's something I'm doing in my spare time).
    The only help I need is to get PHP to check the email, the rest I think I can handle just fine.
    Thanks in advance.
    BTW: I am not in control of the hosting webserver, so if it involves rebuilding PHP to include a mod, it won't be possible. But, I will be using PHP 4 at least.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Why don't you just write a script to publish the news to the database?

    Or even just download one of the hundreds on the web?

    I guess I'm not understanding what you intend to do with the e-mail?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    I want to subscribe to several email newsletters. The newsletters would be delivered to a specific address set up for this, say [email protected]. I want to know if a PHP script (or it can be a Perl CGI script for all I care) to check the inbox, see if there is something, get it, strip out the headers and ads ans uch, grab the relevant content and stuff it into my database. The database is what feeds the news postings on the main web page. Is that any clearer? If I can't automate it, then that means, I have to check the inbox manualy, d/l everything in it, cut and paste it by hand, then post it to the database. Since this is something I am doing on a part time basis,I don't want to have to take time from my paying job to do this, yet, I would like my news to be current.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Hmmm... not sure, but.......
    I bet I can find something like this if i search for it.

    Brb...
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  5. #5
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Are you looking for this?
    Attached Files Attached Files
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  6. #6
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Or this

    http://www.phpguru.org/pop3.html
    http://is.mirrors.phpclasses.org/bro...package/2.html

    Also search for IMAP usage on PHP...

    google.com
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

Posting Permissions

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



Click Here to Expand Forum to Full Width