PHP code example of eden / mail

1. Go to this page and download the library: Download eden/mail library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

eden / mail example snippets


$imap = eden('mail')->imap(
    'imap.gmail.com', 
    '[email protected]', 
    '[YOUR PASSWORD]', 
    993, 
    true);

$pop3 = eden('mail')->pop3(
    'pop.gmail.com', 
    '[email protected]', 
    '[YOUR PASSWORD]', 
    995, 
    true);

$smtp = eden('mail')->smtp(
    'smtp.gmail.com', 
    '[email protected]', 
    '[YOUR PASSWORD]', 
    465, 
    true);

echo $imap->setMailboxes('INBOX')->getActiveInbox(); //--> INBOX 

$email = $imap->getUniqueEmails(22363, true); 
echo $email['body']['text/html'];

$emails = $imap->search(array('TO "[email protected]"'), 0, 3); 

$pop3 = eden('mail')->pop3(
    'pop.gmail.com', 
    '[email protected]', 
    '[YOUR PASSWORD]', 
    995, 
    true);