>
E-Mail Handling in PHP (Read / Write / Delete / R...
Welcome, Guest

by nav on Tuesday, 12 May 2009
E-Mail Handling in PHP (Read / Write / Delete / Rollback Delete)


Guys there are two main classes for email handling:

1: imap.inc.php

2: mimedecode.inc.php

 You can get it form  http://www.phpclasses.org/browse/package/2352.html

=================================================

<?php


    include_once("imap.inc.php");
    include_once("mimedecode.inc.php");
    $imap=new IMAPMAIL;
    if(!$imap->open("192.168.0.26","143"))
    {
        echo $imap->get_error();
        exit;
    }

    $imap->login("naveen","butola");
    echo $imap->error;
    $response=$imap->open_mailbox("INBOX");
    echo $imap->error;
    //echo $response=$imap->get_msglist();
    //echo $response=$imap->delete_message(9);
    //echo $response=$imap->rollback_delete(9);
    $response=$imap->get_message(1);
   
    ///Decoding the mail   

    $mimedecoder=new MIMEDECODE($response,"rn");
    $msg=$mimedecoder->get_parsed_message();
    print_r($msg);
    //echo nl2br($response);
    echo $imap->get_error();
    $imap->close();
    //$response=$imap->fetch_mail("3","BODYSTRUCTURE");
    //print_r($response);
    //echo nl2br($response);
    //echo $imap->error;
    echo "<br>";


?>

================================================

Enjoy

Nav



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering