$this->getContainer()->get('imap')->getMailBox('mailbox_name');
webeith_imap:
mailboxes:
hotmail_user:
login: "example@hotmail.com"
password: "password"
connection_string: "{imap.gmail.com:993/imap/ssl}INBOX"
encoding: "utf-8"
attachments_dir: "/tmp/"
gmail_user_inbox:
login: "example@gmail.com"
password: "password"
connection_string: "{imap.gmail.com:993/imap/ssl}INBOX"
encoding: "utf-8"
attachments_dir: "/tmp/"
Add the following lines to your composer.json
file and then run php composer.phar install
or php composer.phar update
:
{
"require": {
"webeith/imap-bundle": "dev-master"
}
}
To start using the bundle, register it in app/AppKernel.php
:
public function registerBundles()
{
$bundles = array(
// Other bundles...
new Webeith\ImapBundle\WebeithImapBundle(),
);
}